This reverts commit r338204.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338236
91177308-0d34-0410-b5e6-
96231b3b80d8
// immediates here as the normal path expects bit 31 to be sign extended.
if (Idx == 1 && Imm.getBitWidth() == 64 && isUInt<32>(Imm.getZExtValue()))
return TTI::TCC_Free;
- ImmIdx = 1;
- break;
+ LLVM_FALLTHROUGH;
case Instruction::Add:
case Instruction::Sub:
- // For add/sub, we can use the opposite instruction for INT32_MIN.
- if (Idx == 1 && Imm.getBitWidth() == 64 && isInt<32>(-Imm.getSExtValue()))
- return TTI::TCC_Free;
- ImmIdx = 1;
- break;
case Instruction::Mul:
case Instruction::UDiv:
case Instruction::SDiv: