diff options
author | Andrew Trick <atrick@apple.com> | 2011-04-28 17:30:04 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-04-28 17:30:04 +0000 |
commit | c4456ae6ecceea542c67f545b279e527c46591e1 (patch) | |
tree | 1efd48c1e61b9e84e72ff318541dbec3bc75e3c6 /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 7030b869a082d43388eae65c95f604f9577100ab (diff) | |
download | bcm5719-llvm-c4456ae6ecceea542c67f545b279e527c46591e1.tar.gz bcm5719-llvm-c4456ae6ecceea542c67f545b279e527c46591e1.zip |
Reapply r130340: Fix for PR9730.
llvm-svn: 130408
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 2 |
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; |