mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-28 13:51:09 +00:00
Skip analysis re-computation when no changes are reported
This is a follow-up to https://reviews.llvm.org/D80707, generalized to CallGraphSCC, Loop and Region Differential Revision: https://reviews.llvm.org/D86442
This commit is contained in:
parent
acefed239a
commit
41f672146f
@ -489,7 +489,8 @@ bool CGPassManager::RunAllPassesOnSCC(CallGraphSCC &CurSCC, CallGraph &CG,
|
||||
dumpPreservedSet(P);
|
||||
|
||||
verifyPreservedAnalysis(P);
|
||||
removeNotPreservedAnalysis(P);
|
||||
if (LocalChanged)
|
||||
removeNotPreservedAnalysis(P);
|
||||
recordAvailableAnalysis(P);
|
||||
removeDeadPasses(P, "", ON_CG_MSG);
|
||||
}
|
||||
|
@ -254,7 +254,8 @@ bool LPPassManager::runOnFunction(Function &F) {
|
||||
F.getContext().yield();
|
||||
}
|
||||
|
||||
removeNotPreservedAnalysis(P);
|
||||
if (LocalChanged)
|
||||
removeNotPreservedAnalysis(P);
|
||||
recordAvailableAnalysis(P);
|
||||
removeDeadPasses(P,
|
||||
CurrentLoopDeleted ? "<deleted>"
|
||||
|
@ -135,7 +135,8 @@ bool RGPassManager::runOnFunction(Function &F) {
|
||||
verifyPreservedAnalysis(P);
|
||||
}
|
||||
|
||||
removeNotPreservedAnalysis(P);
|
||||
if (LocalChanged)
|
||||
removeNotPreservedAnalysis(P);
|
||||
recordAvailableAnalysis(P);
|
||||
removeDeadPasses(P,
|
||||
(!isPassDebuggingExecutionsOrMore() || skipThisRegion) ?
|
||||
|
Loading…
Reference in New Issue
Block a user