forked from OSchip/llvm-project
[X86] combineOrShiftToFunnelShift - remove shift by immediate handling.
Now that D75114 has landed, DAGCombiner handles this case so the code is redundant.
This commit is contained in:
parent
3f8e714e2f
commit
4689eae820
|
@ -41626,10 +41626,6 @@ static SDValue combineOrShiftToFunnelShift(SDNode *N, SelectionDAG &DAG,
|
|||
ShAmt1Op1 == ShAmt0)
|
||||
return GetFunnelShift(Op0, Op1, ShAmt0);
|
||||
}
|
||||
} else if (auto *ShAmt1C = dyn_cast<ConstantSDNode>(ShAmt1)) {
|
||||
auto *ShAmt0C = dyn_cast<ConstantSDNode>(ShAmt0);
|
||||
if (ShAmt0C && (ShAmt0C->getSExtValue() + ShAmt1C->getSExtValue()) == Bits)
|
||||
return GetFunnelShift(Op0, Op1, ShAmt0);
|
||||
} else if (ShAmt1.getOpcode() == ISD::XOR) {
|
||||
SDValue Mask = ShAmt1.getOperand(1);
|
||||
if (auto *MaskC = dyn_cast<ConstantSDNode>(Mask)) {
|
||||
|
|
Loading…
Reference in New Issue