summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
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
commit15a6423431891054171a9d9ca7702f9c72865e07 (patch)
treec085ff1e8edef4cac8a8a77043a26d27be9d506f /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
parentec0f205dc12474068ced7cdb6b197106a634989d (diff)
downloadbcm5719-llvm-15a6423431891054171a9d9ca7702f9c72865e07.tar.gz
bcm5719-llvm-15a6423431891054171a9d9ca7702f9c72865e07.zip
Specify that indvars actually preserve LCSSA. This has been done for a while, but I
forgot to put in the analysis usage. llvm-svn: 29867
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index efa587b221e..cf2daa1ddc1 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/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());
}
OpenPOWER on IntegriCloud