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/LoopSimplify.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/LoopSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopSimplify.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopSimplify.cpp b/llvm/lib/Transforms/Utils/LoopSimplify.cpp index 6adfeaf..260ada8 100644 --- a/llvm/lib/Transforms/Utils/LoopSimplify.cpp +++ b/llvm/lib/Transforms/Utils/LoopSimplify.cpp @@ -865,9 +865,6 @@ PreservedAnalyses LoopSimplifyPass::run(Function &F, PreservedAnalyses PA; PA.preserve<DominatorTreeAnalysis>(); PA.preserve<LoopAnalysis>(); - PA.preserve<BasicAA>(); - PA.preserve<GlobalsAA>(); - PA.preserve<SCEVAA>(); PA.preserve<ScalarEvolutionAnalysis>(); PA.preserve<DependenceAnalysis>(); if (MSSAAnalysis) |