aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index a8d90ced00..4287bd085a 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -571,4 +571,6 @@ void IndVarSimplify::runOnLoop(Loop *L) {
#endif
DeleteTriviallyDeadInstructions(DeadInsts);
+
+ if (mustPreserveAnalysisID(LCSSAID)) assert(L->isLCSSAForm());
}