diff options
author | Owen Anderson <resistor@mac.com> | 2006-08-25 03:32:13 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2006-08-25 03:32:13 +0000 |
commit | 15a6423431891054171a9d9ca7702f9c72865e07 (patch) | |
tree | c085ff1e8edef4cac8a8a77043a26d27be9d506f /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | ec0f205dc12474068ced7cdb6b197106a634989d (diff) | |
download | bcm5719-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.cpp | 3 |
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()); } |