From eb705914924865201f8b8018977d94594b258142 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Fri, 25 Aug 2006 22:12:36 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/IndVarSimplify.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()); } -- 2.34.1