aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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());
}