From 1b9029c2f279f4ff50795e1cc130ae762c8932be Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 10 Sep 2002 03:50:54 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/InstructionCombining.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 748969ab3b7..785eb709aa4 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(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())); }