diff options
author | Owen Anderson <resistor@mac.com> | 2006-08-25 22:12:36 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2006-08-25 22:12:36 +0000 |
commit | 8e4b029573466ae04d33b0f182779a114a51696b (patch) | |
tree | af6a128add62fb7816de16e5c99c3d3efeb6aad8 /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | d7572fb2346e3ace127f78435c276c464b1bab72 (diff) | |
download | bcm5719-llvm-8e4b029573466ae04d33b0f182779a114a51696b.tar.gz bcm5719-llvm-8e4b029573466ae04d33b0f182779a114a51696b.zip |
Add an assertion to check that we're really preserving LCSSA.
llvm-svn: 29886
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index a8d90ced00e..4287bd085aa 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -571,4 +571,6 @@ void IndVarSimplify::runOnLoop(Loop *L) { #endif DeleteTriviallyDeadInstructions(DeadInsts); + + if (mustPreserveAnalysisID(LCSSAID)) assert(L->isLCSSAForm()); } |