[PATCH] D127245: [mlgo] Disable accounting upon ForceStop
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 14:26:42 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa3a7826d823a: [mlgo] Disable accounting upon ForceStop (authored by Northbadge, committed by mtrofin).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127245/new/
https://reviews.llvm.org/D127245
Files:
llvm/lib/Analysis/MLInlineAdvisor.cpp
Index: llvm/lib/Analysis/MLInlineAdvisor.cpp
===================================================================
--- llvm/lib/Analysis/MLInlineAdvisor.cpp
+++ llvm/lib/Analysis/MLInlineAdvisor.cpp
@@ -133,6 +133,8 @@
}
void MLInlineAdvisor::onPassEntry() {
+ if (ForceStop)
+ return;
FPICache.clear();
// Function passes executed between InlinerPass runs may have changed the
// module-wide features.
@@ -174,7 +176,7 @@
void MLInlineAdvisor::onPassExit(LazyCallGraph::SCC *LastSCC) {
// No need to keep this around - function passes will invalidate it.
FPICache.clear();
- if (!LastSCC)
+ if (!LastSCC || 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127245.435334.patch
Type: text/x-patch
Size: 813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220608/e42f51a8/attachment.bin>
More information about the llvm-commits
mailing list