[PATCH] D86442: Skip analysis re-computation when no changes are reported
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 12:41:21 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG229618218152: Skip analysis re-computation when no changes are reported (authored by serge-sans-paille).
Herald added a subscriber: danielkiss.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86442/new/
https://reviews.llvm.org/D86442
Files:
llvm/lib/Analysis/CallGraphSCCPass.cpp
llvm/lib/Analysis/LoopPass.cpp
llvm/lib/Analysis/RegionPass.cpp
Index: llvm/lib/Analysis/RegionPass.cpp
===================================================================
--- llvm/lib/Analysis/RegionPass.cpp
+++ llvm/lib/Analysis/RegionPass.cpp
@@ -135,7 +135,8 @@
verifyPreservedAnalysis(P);
}
- removeNotPreservedAnalysis(P);
+ if (LocalChanged)
+ removeNotPreservedAnalysis(P);
recordAvailableAnalysis(P);
removeDeadPasses(P,
(!isPassDebuggingExecutionsOrMore() || skipThisRegion) ?
Index: llvm/lib/Analysis/LoopPass.cpp
===================================================================
--- llvm/lib/Analysis/LoopPass.cpp
+++ llvm/lib/Analysis/LoopPass.cpp
@@ -254,7 +254,8 @@
F.getContext().yield();
}
- removeNotPreservedAnalysis(P);
+ if (LocalChanged)
+ removeNotPreservedAnalysis(P);
recordAvailableAnalysis(P);
removeDeadPasses(P,
CurrentLoopDeleted ? "<deleted>"
Index: llvm/lib/Analysis/CallGraphSCCPass.cpp
===================================================================
--- llvm/lib/Analysis/CallGraphSCCPass.cpp
+++ llvm/lib/Analysis/CallGraphSCCPass.cpp
@@ -489,7 +489,8 @@
dumpPreservedSet(P);
verifyPreservedAnalysis(P);
- removeNotPreservedAnalysis(P);
+ if (LocalChanged)
+ removeNotPreservedAnalysis(P);
recordAvailableAnalysis(P);
removeDeadPasses(P, "", ON_CG_MSG);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86442.288676.patch
Type: text/x-patch
Size: 1415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200828/9d44e8ff/attachment.bin>
More information about the llvm-commits
mailing list