Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.727 -> 1.728
---
Log message:

Fix a bug I introduced with my patch yesterday which broke Qt (I converted
some constant exprs to apints).

Thanks to Anton for tracking down a small testcase that triggered this!



---
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.727 
llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.728
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.727   Tue Apr  3 
12:43:25 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Tue Apr  3 18:29:39 2007
@@ -5087,7 +5087,7 @@
                                       Mask, LHSI->getName()+".mask");
           Value *And = InsertNewInstBefore(AndI, ICI);
           return new ICmpInst(ICI.getPredicate(), And,
-                              ConstantInt::get(RHSV << ShAmtVal));
+                              ConstantInt::get(RHSV.lshr(ShAmtVal)));
         }
       }
     }



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

Reply via email to