mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 09:21:13 +00:00
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
This commit is contained in:
parent
979d9b7a57
commit
1b9029c2f2
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user