[PATCH] D80707: [legacyPM] Do not compute preserved analysis if there's no local change
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 02:02:59 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3218c064d6d8: [legacyPM] Do not compute preserved analysis if there's no local change (authored by serge-sans-paille).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80707/new/
https://reviews.llvm.org/D80707
Files:
llvm/lib/IR/LegacyPassManager.cpp
Index: llvm/lib/IR/LegacyPassManager.cpp
===================================================================
--- llvm/lib/IR/LegacyPassManager.cpp
+++ llvm/lib/IR/LegacyPassManager.cpp
@@ -1614,7 +1614,8 @@
dumpUsedSet(FP);
verifyPreservedAnalysis(FP);
- removeNotPreservedAnalysis(FP);
+ if (LocalChanged)
+ removeNotPreservedAnalysis(FP);
recordAvailableAnalysis(FP);
removeDeadPasses(FP, F.getName(), ON_FUNCTION_MSG);
}
@@ -1723,7 +1724,8 @@
dumpUsedSet(MP);
verifyPreservedAnalysis(MP);
- removeNotPreservedAnalysis(MP);
+ if (LocalChanged)
+ removeNotPreservedAnalysis(MP);
recordAvailableAnalysis(MP);
removeDeadPasses(MP, M.getModuleIdentifier(), ON_MODULE_MSG);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80707.281144.patch
Type: text/x-patch
Size: 745 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200728/3ed1988c/attachment.bin>
More information about the llvm-commits
mailing list