Skip to content

Commit 4689eae

Browse files
committed
[X86] combineOrShiftToFunnelShift - remove shift by immediate handling.
Now that D75114 has landed, DAGCombiner handles this case so the code is redundant.
1 parent 3f8e714 commit 4689eae

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41626,10 +41626,6 @@ static SDValue combineOrShiftToFunnelShift(SDNode *N, SelectionDAG &DAG,
4162641626
ShAmt1Op1 == ShAmt0)
4162741627
return GetFunnelShift(Op0, Op1, ShAmt0);
4162841628
}
41629-
} else if (auto *ShAmt1C = dyn_cast<ConstantSDNode>(ShAmt1)) {
41630-
auto *ShAmt0C = dyn_cast<ConstantSDNode>(ShAmt0);
41631-
if (ShAmt0C && (ShAmt0C->getSExtValue() + ShAmt1C->getSExtValue()) == Bits)
41632-
return GetFunnelShift(Op0, Op1, ShAmt0);
4163341629
} else if (ShAmt1.getOpcode() == ISD::XOR) {
4163441630
SDValue Mask = ShAmt1.getOperand(1);
4163541631
if (auto *MaskC = dyn_cast<ConstantSDNode>(Mask)) {

0 commit comments

Comments
 (0)