diff options
author | Alina Sbirlea <asbirlea@google.com> | 2019-06-11 18:27:49 +0000 |
---|---|---|
committer | Alina Sbirlea <asbirlea@google.com> | 2019-06-11 18:27:49 +0000 |
commit | 3cef1f7d64f29fab5c8d0ce9abf0fa98c75a3c10 (patch) | |
tree | a0454831a68aedf8228db5bc20d91302a5f1c084 /llvm/lib/Analysis/LoopAnalysisManager.cpp | |
parent | e20865c387e09ea0ebd5add15c762cd5271ff65f (diff) | |
download | llvm-3cef1f7d64f29fab5c8d0ce9abf0fa98c75a3c10.zip llvm-3cef1f7d64f29fab5c8d0ce9abf0fa98c75a3c10.tar.gz llvm-3cef1f7d64f29fab5c8d0ce9abf0fa98c75a3c10.tar.bz2 |
Only passes that preserve MemorySSA must mark it as preserved.
Summary:
The method `getLoopPassPreservedAnalyses` should not mark MemorySSA as
preserved, because it's being called in a lot of passes that do not
preserve MemorySSA.
Instead, mark the MemorySSA analysis as preserved by each pass that does
preserve it.
These changes only affect the new pass mananger.
Reviewers: chandlerc
Subscribers: mehdi_amini, jlebar, Prazek, george.burgess.iv, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62536
llvm-svn: 363091
Diffstat (limited to 'llvm/lib/Analysis/LoopAnalysisManager.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopAnalysisManager.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LoopAnalysisManager.cpp b/llvm/lib/Analysis/LoopAnalysisManager.cpp index d0cfb3e..a10a87c 100644 --- a/llvm/lib/Analysis/LoopAnalysisManager.cpp +++ b/llvm/lib/Analysis/LoopAnalysisManager.cpp @@ -141,8 +141,6 @@ PreservedAnalyses llvm::getLoopPassPreservedAnalyses() { PA.preserve<LoopAnalysis>(); PA.preserve<LoopAnalysisManagerFunctionProxy>(); PA.preserve<ScalarEvolutionAnalysis>(); - if (EnableMSSALoopDependency) - 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>(); |