diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-05-06 16:30:39 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-05-18 13:49:03 -0700 |
commit | 6b9524a05bab21c6b0ba4fe025864cb613605b99 (patch) | |
tree | 65dac1ad17cdbf8acb5cd11d30eb6776d56a0fce /llvm/lib/Transforms/Utils/LCSSA.cpp | |
parent | fd5e79ff12204b5850cca364fc669fa10eb9a1a5 (diff) | |
download | llvm-6b9524a05bab21c6b0ba4fe025864cb613605b99.zip llvm-6b9524a05bab21c6b0ba4fe025864cb613605b99.tar.gz llvm-6b9524a05bab21c6b0ba4fe025864cb613605b99.tar.bz2 |
[NewPM] Don't mark AA analyses as preserved
Currently all AA analyses marked as preserved are stateless, not taking
into account their dependent analyses. So there's no need to mark them
as preserved, they won't be invalidated unless their analyses are.
SCEVAAResults was the one exception to this, it was treated like a
typical analysis result. Make it like the others and don't invalidate
unless SCEV is invalidated.
Reviewed By: asbirlea
Differential Revision: https://reviews.llvm.org/D102032
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LCSSA.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp index 3bae480..277fd90 100644 --- a/llvm/lib/Transforms/Utils/LCSSA.cpp +++ b/llvm/lib/Transforms/Utils/LCSSA.cpp @@ -503,9 +503,6 @@ PreservedAnalyses LCSSAPass::run(Function &F, FunctionAnalysisManager &AM) { PreservedAnalyses PA; PA.preserveSet<CFGAnalyses>(); - PA.preserve<BasicAA>(); - PA.preserve<GlobalsAA>(); - PA.preserve<SCEVAA>(); PA.preserve<ScalarEvolutionAnalysis>(); // BPI maps terminators to probabilities, since we don't modify the CFG, no // updates are needed to preserve it. |