diff options
author | Andrew Trick <atrick@apple.com> | 2011-04-28 00:13:59 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-04-28 00:13:59 +0000 |
commit | 1e34241abd5cf86d4d4df1f92fc88026a9ead515 (patch) | |
tree | ed4ee070526c3f9f7a0812dbeafeb5a609b215ad /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | |
parent | 443e46f16d0ee9098e3c6467347cd8067dfecf26 (diff) | |
download | bcm5719-llvm-1e34241abd5cf86d4d4df1f92fc88026a9ead515.tar.gz bcm5719-llvm-1e34241abd5cf86d4d4df1f92fc88026a9ead515.zip |
Reverting r130340 in the unlikely event that it's responsible for a llvm-gcc stage2 compiler error.
llvm-svn: 130350
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 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; |