[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Christopher Lattner
lattner at cs.uiuc.edu
Sun Sep 8 16:40:01 PDT 2002
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.52 -> 1.53
---
Log message:
Fix Bug: test/Regression/Transforms/InstCombine/2002-09-08-PointerShiftBug.ll
---
Diffs of the changes:
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.52 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.53
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.52 Mon Sep 2 20:07:49 2002
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Sun Sep 8 16:39:07 2002
@@ -492,6 +492,7 @@
if (ConstantUInt *CUI = dyn_cast<ConstantUInt>(Op1)) {
unsigned TypeBits = Op0->getType()->getPrimitiveSize()*8;
if (CUI->getValue() >= TypeBits &&
+ TypeBits && // FIXME: Handle pointer operands here. This should go away
!(Op0->getType()->isSigned() && I.getOpcode() == Instruction::Shr))
return ReplaceInstUsesWith(I, Constant::getNullValue(Op0->getType()));
}
More information about the llvm-commits
mailing list