@@ -52596,7 +52596,8 @@ static SDValue combineOr(SDNode *N, SelectionDAG &DAG,
52596
52596
/// XOR(TRUNCATE(SRL(X, size(X)-1)), 1)
52597
52597
/// into:
52598
52598
/// SETGT(X, -1)
52599
- static SDValue foldXorTruncShiftIntoCmp(SDNode *N, SelectionDAG &DAG) {
52599
+ static SDValue foldXorTruncShiftIntoCmp(SDNode *N, const SDLoc &DL,
52600
+ SelectionDAG &DAG) {
52600
52601
// This is only worth doing if the output type is i8 or i1.
52601
52602
EVT ResultType = N->getValueType(0);
52602
52603
if (ResultType != MVT::i8 && ResultType != MVT::i1)
@@ -52631,7 +52632,6 @@ static SDValue foldXorTruncShiftIntoCmp(SDNode *N, SelectionDAG &DAG) {
52631
52632
// Create a greater-than comparison against -1.
52632
52633
// N.B. Using SETGE against 0 works but we want a canonical looking
52633
52634
// comparison, using SETGT matches up with what TranslateX86CC.
52634
- SDLoc DL(N);
52635
52635
SDValue ShiftOp = Shift.getOperand(0);
52636
52636
EVT ShiftOpTy = ShiftOp.getValueType();
52637
52637
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
@@ -54936,7 +54936,7 @@ static SDValue combineXor(SDNode *N, SelectionDAG &DAG,
54936
54936
if (SDValue R = combineOrXorWithSETCC(N->getOpcode(), DL, VT, N0, N1, DAG))
54937
54937
return R;
54938
54938
54939
- if (SDValue RV = foldXorTruncShiftIntoCmp(N, DAG))
54939
+ if (SDValue RV = foldXorTruncShiftIntoCmp(N, DL, DAG))
54940
54940
return RV;
54941
54941
54942
54942
// Fold not(iX bitcast(vXi1)) -> (iX bitcast(not(vec))) for legal boolvecs.
0 commit comments