[llvm-commits] [llvm] r130350 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Andrew Trick atrick at apple.com
Wed Apr 27 17:13:59 PDT 2011


Author: atrick
Date: Wed Apr 27 19:13:59 2011
New Revision: 130350

URL: http://llvm.org/viewvc/llvm-project?rev=130350&view=rev
Log:
Reverting r130340 in the unlikely event that it's responsible for a llvm-gcc stage2 compiler error.

Modified:
    llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=130350&r1=130349&r2=130350&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Wed Apr 27 19:13:59 2011
@@ -275,7 +275,7 @@
   // 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;





More information about the llvm-commits mailing list