[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 12 13:48:02 PST 2004
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.147 -> 1.148
---
Log message:
Fix bug in previous checkin
---
Diffs of the changes: (+3 -1)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.147 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.148
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.147 Mon Jan 12 13:35:11 2004
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Mon Jan 12 13:47:05 2004
@@ -768,7 +768,9 @@
ConstantIntegral *AndRHS,
BinaryOperator &TheAnd) {
Value *X = Op->getOperand(0);
- Constant *Together = ConstantExpr::get(Instruction::And, AndRHS, OpRHS);
+ Constant *Together = 0;
+ if (!isa<ShiftInst>(Op))
+ Together = ConstantExpr::get(Instruction::And, AndRHS, OpRHS);
switch (Op->getOpcode()) {
case Instruction::Xor:
More information about the llvm-commits
mailing list