aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2006-08-25 03:32:13 +0000
committerOwen Anderson <resistor@mac.com>2006-08-25 03:32:13 +0000
commit8a24749cb83acc25742a96d3e60413df283f50dd (patch)
treebd74e98b3d6004c41b144db729b2c43d6412321c /lib/Transforms
parent0ff2d31766209ce1a69d4d2c5d35761ef57362aa (diff)
Specify that indvars actually preserve LCSSA. This has been done for a while, but I
forgot to put in the analysis usage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index efa587b221..cf2daa1ddc 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -79,6 +79,7 @@ namespace {
AU.addRequired<ScalarEvolution>();
AU.addRequired<LoopInfo>();
AU.addPreservedID(LoopSimplifyID);
+ AU.addPreservedID(LCSSAID);
AU.setPreservesCFG();
}
private:
@@ -570,4 +571,6 @@ void IndVarSimplify::runOnLoop(Loop *L) {
#endif
DeleteTriviallyDeadInstructions(DeadInsts);
+
+ assert(L->isLCSSAForm());
}