diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index efa587b221e..cf2daa1ddc1 100644 --- a/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -79,6 +79,7 @@ namespace { AU.addRequired(); AU.addRequired(); AU.addPreservedID(LoopSimplifyID); + AU.addPreservedID(LCSSAID); AU.setPreservesCFG(); } private: @@ -570,4 +571,6 @@ void IndVarSimplify::runOnLoop(Loop *L) { #endif DeleteTriviallyDeadInstructions(DeadInsts); + + assert(L->isLCSSAForm()); }