Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.608 -> 1.609
---
Log message:

Fix test/Transforms/InstCombine/2007-01-27-AndICmp.ll, a miscompilation of
Mozilla that Anton tracked down.


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

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


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.608 
llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.609
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.608   Sun Jan 21 
23:51:25 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Sat Jan 27 17:08:34 2007
@@ -3288,7 +3288,8 @@
                 Instruction *Add = BinaryOperator::createAdd(LHSVal, AddCST,
                                                       
LHSVal->getName()+".off");
                 InsertNewInstBefore(Add, I);
-                return new ICmpInst(ICmpInst::ICMP_UGT, Add, AddCST);
+                return new ICmpInst(ICmpInst::ICMP_UGT, Add,
+                                    ConstantInt::get(Add->getType(), 1));
               }
               break;                        // (X != 13 & X != 15) -> no change
             }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to