[llvm] r341587 - [LoopPassManager] MemorySSA should be preserved when enabled.
Alina Sbirlea via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 6 13:54:24 PDT 2018
Author: asbirlea
Date: Thu Sep 6 13:54:24 2018
New Revision: 341587
URL: http://llvm.org/viewvc/llvm-project?rev=341587&view=rev
Log:
[LoopPassManager] MemorySSA should be preserved when enabled.
Modified:
llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h
llvm/trunk/lib/Analysis/LoopAnalysisManager.cpp
Modified: llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h?rev=341587&r1=341586&r2=341587&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h (original)
+++ llvm/trunk/include/llvm/Transforms/Scalar/LoopPassManager.h Thu Sep 6 13:54:24 2018
@@ -364,8 +364,8 @@ public:
PA.preserve<DominatorTreeAnalysis>();
PA.preserve<LoopAnalysis>();
PA.preserve<ScalarEvolutionAnalysis>();
- // FIXME: Uncomment this when all loop passes preserve MemorySSA
- // PA.preserve<MemorySSAAnalysis>();
+ 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>();
Modified: llvm/trunk/lib/Analysis/LoopAnalysisManager.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LoopAnalysisManager.cpp?rev=341587&r1=341586&r2=341587&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LoopAnalysisManager.cpp (original)
+++ llvm/trunk/lib/Analysis/LoopAnalysisManager.cpp Thu Sep 6 13:54:24 2018
@@ -147,8 +147,8 @@ PreservedAnalyses llvm::getLoopPassPrese
PA.preserve<LoopAnalysis>();
PA.preserve<LoopAnalysisManagerFunctionProxy>();
PA.preserve<ScalarEvolutionAnalysis>();
- // FIXME: Uncomment this when all loop passes preserve MemorySSA
- // PA.preserve<MemorySSAAnalysis>();
+ 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>();
More information about the llvm-commits
mailing list