aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2006-08-25 22:12:36 +0000
committerOwen Anderson <resistor@mac.com>2006-08-25 22:12:36 +0000
commiteb705914924865201f8b8018977d94594b258142 (patch)
treeb9520ec4b3a5d63bd984c0b4811134188572699d /lib/Transforms
parentb9ca92661cf145bfb3bd9705e5629fc5f411a42f (diff)
Add an assertion to check that we're really preserving LCSSA.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29886 91177308-0d34-0410-b5e6-96231b3b80d8
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());
}