aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-12 21:52:28 +0000
committerChris Lattner <sabre@nondot.org>2003-10-12 21:52:28 +0000
commit98bf436e2e2ab463d79c54a42a46b12028905330 (patch)
tree1de25860feea0170f5215f19d15fc94bb5c639c1 /lib/Transforms/Utils
parentd59128ad364b01caf6c541f02e0e9631e834eb1a (diff)
downloadexternal_llvm-98bf436e2e2ab463d79c54a42a46b12028905330.zip
external_llvm-98bf436e2e2ab463d79c54a42a46b12028905330.tar.gz
external_llvm-98bf436e2e2ab463d79c54a42a46b12028905330.tar.bz2
Rename loop preheaders pass to loop simplify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/BreakCriticalEdges.cpp4
-rw-r--r--lib/Transforms/Utils/LoopSimplify.cpp4
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/BreakCriticalEdges.cpp b/lib/Transforms/Utils/BreakCriticalEdges.cpp
index e37b307..99b1b2d 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 9aee1d3..718c49d 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