From: Owen Anderson Date: Fri, 25 Aug 2006 22:12:36 +0000 (+0000) Subject: Add an assertion to check that we're really preserving LCSSA. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eb705914924865201f8b8018977d94594b258142;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp index a8d90ced00e..4287bd085aa 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()); }