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/Scalar/LoopPassManager.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/Scalar/LoopPassManager.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopPassManager.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopPassManager.cpp b/llvm/lib/Transforms/Scalar/LoopPassManager.cpp index 5e03bdb..f4fce48 100644 --- a/llvm/lib/Transforms/Scalar/LoopPassManager.cpp +++ b/llvm/lib/Transforms/Scalar/LoopPassManager.cpp @@ -327,12 +327,6 @@ PreservedAnalyses FunctionToLoopPassAdaptor::run(Function &F, PA.preserve<BlockFrequencyAnalysis>(); if (UseMemorySSA) PA.preserve<MemorySSAAnalysis>(); - // FIXME: What we really want to do here is preserve an AA category, but - // that concept doesn't exist yet. - PA.preserve<AAManager>(); - PA.preserve<BasicAA>(); - PA.preserve<GlobalsAA>(); - PA.preserve<SCEVAA>(); return PA; } |