diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-10 03:50:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-10 03:50:54 +0000 |
commit | 1b9029c2f279f4ff50795e1cc130ae762c8932be (patch) | |
tree | 97695a2648ca14b32a283d262ed9508411b98b6d | |
parent | 979d9b7a5740f627dc8b8ea4f98d81f10f95eb6a (diff) | |
download | external_llvm-1b9029c2f279f4ff50795e1cc130ae762c8932be.zip external_llvm-1b9029c2f279f4ff50795e1cc130ae762c8932be.tar.gz external_llvm-1b9029c2f279f4ff50795e1cc130ae762c8932be.tar.bz2 |
Hack unneccesary now that shifts of pointers are no longer legal!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3640 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 748969a..785eb70 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -492,7 +492,6 @@ Instruction *InstCombiner::visitShiftInst(Instruction &I) { 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())); } |