[llvm-commits] [llvm] r65314 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp

Zhou Sheng zhousheng00 at gmail.com
Mon Feb 23 02:14:26 PST 2009


Author: sheng
Date: Mon Feb 23 04:14:11 2009
New Revision: 65314

URL: http://llvm.org/viewvc/llvm-project?rev=65314&view=rev
Log:
Should reset DBI_Prev if DBI_Next == 0.

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

Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=65314&r1=65313&r2=65314&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Mon Feb 23 04:14:11 2009
@@ -12419,6 +12419,8 @@
           DBI_Prev->eraseFromParent();
         }
         DBI_Prev = DBI_Next;
+      } else {
+        DBI_Prev = 0;
       }
 
       IC.AddToWorkList(Inst);





More information about the llvm-commits mailing list