diff options
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r-- | lib/Transforms/Utils/BreakCriticalEdges.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/Utils/LoopSimplify.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/BreakCriticalEdges.cpp b/lib/Transforms/Utils/BreakCriticalEdges.cpp index e37b307de8..99b1b2dfd0 100644 --- a/lib/Transforms/Utils/BreakCriticalEdges.cpp +++ b/lib/Transforms/Utils/BreakCriticalEdges.cpp @@ -27,7 +27,9 @@ namespace { AU.addPreserved<ImmediateDominators>(); AU.addPreserved<DominatorTree>(); AU.addPreserved<DominanceFrontier>(); - AU.addPreservedID(LoopPreheadersID); // No preheaders deleted. + + // No loop canonicalization guarantees are broken by this pass. + AU.addPreservedID(LoopSimplifyID); } }; diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 9aee1d3586..718c49da43 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -66,8 +66,8 @@ namespace { } // Publically exposed interface to pass... -const PassInfo *LoopPreheadersID = X.getPassInfo(); -Pass *createLoopPreheaderInsertionPass() { return new LoopSimplify(); } +const PassInfo *LoopSimplifyID = X.getPassInfo(); +Pass *createLoopSimplifyPass() { return new LoopSimplify(); } /// runOnFunction - Run down all loops in the CFG (recursively, but we could do |