summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-10 03:50:54 +0000
committerChris Lattner <sabre@nondot.org>2002-09-10 03:50:54 +0000
commite103d178c587ad02d7ae8e7c8ac056d2ce157f38 (patch)
tree5a066a2a220f94101ccdde6385267bcbc6597b2d /llvm/lib/Transforms
parent4e7f7c0f30afd118d9c4c3deff7c75ff4b3bcced (diff)
downloadbcm5719-llvm-e103d178c587ad02d7ae8e7c8ac056d2ce157f38.tar.gz
bcm5719-llvm-e103d178c587ad02d7ae8e7c8ac056d2ce157f38.zip
Hack unneccesary now that shifts of pointers are no longer legal!
llvm-svn: 3640
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 748969ab3b7..785eb709aa4 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/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()));
}
OpenPOWER on IntegriCloud