summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-04-28 00:13:59 +0000
committerAndrew Trick <atrick@apple.com>2011-04-28 00:13:59 +0000
commita7707ae19ab5f47d9dffb1d8e07a090e948a1a39 (patch)
treeda2f2fcf59ece9f93604eb692e957ea606369907 /lib/Transforms/Scalar/IndVarSimplify.cpp
parent8211a6a61d82da340c20fde078148bde63e2d83e (diff)
downloadllvm-a7707ae19ab5f47d9dffb1d8e07a090e948a1a39.tar.gz
llvm-a7707ae19ab5f47d9dffb1d8e07a090e948a1a39.tar.bz2
llvm-a7707ae19ab5f47d9dffb1d8e07a090e948a1a39.tar.xz
Reverting r130340 in the unlikely event that it's responsible for a llvm-gcc stage2 compiler error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 09d569a097..eebcc69590 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/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;