[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jun 15 21:56:03 PDT 2005



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.351 -> 1.352
---
Log message:

Fix PR583: http://llvm.cs.uiuc.edu/PR583  and testcase Transforms/InstCombine/2005-06-15-DivSelectCrash.ll


---
Diffs of the changes:  (+1 -1)

 InstructionCombining.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.351 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.352
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.351	Wed Jun 15 22:00:08 2005
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Wed Jun 15 23:55:52 2005
@@ -1067,7 +1067,7 @@
           I.setOperand(1, SFO);
           return &I;
         } else if (SFO->getValue() == 0) {
-          I.setOperand(2, STO);
+          I.setOperand(1, STO);
           return &I;
         }
 






More information about the llvm-commits mailing list