summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-04-28 17:30:04 +0000
committerAndrew Trick <atrick@apple.com>2011-04-28 17:30:04 +0000
commitc4456ae6ecceea542c67f545b279e527c46591e1 (patch)
tree1efd48c1e61b9e84e72ff318541dbec3bc75e3c6 /llvm/lib/Transforms
parent7030b869a082d43388eae65c95f604f9577100ab (diff)
downloadbcm5719-llvm-c4456ae6ecceea542c67f545b279e527c46591e1.tar.gz
bcm5719-llvm-c4456ae6ecceea542c67f545b279e527c46591e1.zip
Reapply r130340: Fix for PR9730.
llvm-svn: 130408
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index eebcc695907..09d569a097d 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);
- RecursivelyDeleteTriviallyDeadInstructions(OrigCond);
+ DeadInsts.push_back(OrigCond);
++NumLFTR;
Changed = true;
OpenPOWER on IntegriCloud