From 1e34241abd5cf86d4d4df1f92fc88026a9ead515 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Thu, 28 Apr 2011 00:13:59 +0000 Subject: Reverting r130340 in the unlikely event that it's responsible for a llvm-gcc stage2 compiler error. llvm-svn: 130350 --- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp index 09d569a097d..eebcc695907 100644 --- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp @@ -275,7 +275,7 @@ ICmpInst *IndVarSimplify::LinearFunctionTestReplace(Loop *L, // update the branch to use the new comparison; in the common case this // will make old comparison dead. BI->setCondition(Cond); - DeadInsts.push_back(OrigCond); + RecursivelyDeleteTriviallyDeadInstructions(OrigCond); ++NumLFTR; Changed = true; -- cgit v1.2.3