[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Christopher Lattner
lattner at cs.uiuc.edu
Mon Sep 9 22:51:03 PDT 2002
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.53 -> 1.54
---
Log message:
Hack unneccesary now that shifts of pointers are no longer legal!
---
Diffs of the changes:
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.53 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.54
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.53 Sun Sep 8 16:39:07 2002
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Mon Sep 9 22:50:54 2002
@@ -492,7 +492,6 @@
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