-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[NFC][MLInliner] Rename LastSCC -> CurSCC #96546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The passed SCC is the current SCC we're working on.
@llvm/pr-subscribers-llvm-analysis @llvm/pr-subscribers-mlgo Author: Arthur Eubanks (aeubanks) ChangesThe passed SCC is the current SCC we're working on. Full diff: https://github.com/llvm/llvm-project/pull/96546.diff 1 Files Affected:
diff --git a/llvm/lib/Analysis/MLInlineAdvisor.cpp b/llvm/lib/Analysis/MLInlineAdvisor.cpp
index 21946572339b9..934c0cfb6e20c 100644
--- a/llvm/lib/Analysis/MLInlineAdvisor.cpp
+++ b/llvm/lib/Analysis/MLInlineAdvisor.cpp
@@ -187,8 +187,8 @@ unsigned MLInlineAdvisor::getInitialFunctionLevel(const Function &F) const {
return CG.lookup(F) ? FunctionLevels.at(CG.lookup(F)) : 0;
}
-void MLInlineAdvisor::onPassEntry(LazyCallGraph::SCC *LastSCC) {
- if (!LastSCC || ForceStop)
+void MLInlineAdvisor::onPassEntry(LazyCallGraph::SCC *CurSCC) {
+ if (!CurSCC || ForceStop)
return;
FPICache.clear();
// Function passes executed between InlinerPass runs may have changed the
@@ -235,15 +235,15 @@ void MLInlineAdvisor::onPassEntry(LazyCallGraph::SCC *LastSCC) {
// (Re)use NodesInLastSCC to remember the nodes in the SCC right now,
// in case the SCC is split before onPassExit and some nodes are split out
assert(NodesInLastSCC.empty());
- for (const auto &N : *LastSCC)
+ for (const auto &N : *CurSCC)
NodesInLastSCC.insert(&N);
}
-void MLInlineAdvisor::onPassExit(LazyCallGraph::SCC *LastSCC) {
+void MLInlineAdvisor::onPassExit(LazyCallGraph::SCC *CurSCC) {
// No need to keep this around - function passes will invalidate it.
if (!KeepFPICache)
FPICache.clear();
- if (!LastSCC || ForceStop)
+ if (!CurSCC || ForceStop)
return;
// Keep track of the nodes and edges we last saw. Then, in onPassEntry,
// we update the node count and edge count from the subset of these nodes that
@@ -259,7 +259,7 @@ void MLInlineAdvisor::onPassExit(LazyCallGraph::SCC *LastSCC) {
}
// Check on nodes that may have got added to SCC
- for (const auto &N : *LastSCC) {
+ for (const auto &N : *CurSCC) {
assert(!N.isDead());
auto I = NodesInLastSCC.insert(&N);
if (I.second)
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/69/builds/603 Here is the relevant piece of the build log for the reference:
|
The passed SCC is the current SCC we're working on.
The passed SCC is the current SCC we're working on. (cherry picked from commit 0555afd)
The passed SCC is the current SCC we're working on. (cherry picked from commit 0555afd)
The passed SCC is the current SCC we're working on. (cherry picked from commit 0555afd)
The passed SCC is the current SCC we're working on. (cherry picked from commit 0555afd)
The passed SCC is the current SCC we're working on.