@@ -50839,7 +50839,8 @@ static SDValue combineCompareEqual(SDNode *N, SelectionDAG &DAG,
5083950839}
5084050840
5084150841/// Try to fold: (and (xor X, -1), Y) -> (andnp X, Y).
50842- static SDValue combineAndNotIntoANDNP(SDNode *N, SelectionDAG &DAG) {
50842+ static SDValue combineAndNotIntoANDNP(SDNode *N, const SDLoc &DL,
50843+ SelectionDAG &DAG) {
5084350844 assert(N->getOpcode() == ISD::AND && "Unexpected opcode combine into ANDNP");
5084450845
5084550846 MVT VT = N->getSimpleValueType(0);
@@ -50861,7 +50862,7 @@ static SDValue combineAndNotIntoANDNP(SDNode *N, SelectionDAG &DAG) {
5086150862
5086250863 X = DAG.getBitcast(VT, X);
5086350864 Y = DAG.getBitcast(VT, Y);
50864- return DAG.getNode(X86ISD::ANDNP, SDLoc(N) , VT, X, Y);
50865+ return DAG.getNode(X86ISD::ANDNP, DL , VT, X, Y);
5086550866}
5086650867
5086750868/// Try to fold:
@@ -51839,7 +51840,7 @@ static SDValue combineAnd(SDNode *N, SelectionDAG &DAG,
5183951840 if (SDValue R = combineCompareEqual(N, DAG, DCI, Subtarget))
5184051841 return R;
5184151842
51842- if (SDValue R = combineAndNotIntoANDNP(N, DAG))
51843+ if (SDValue R = combineAndNotIntoANDNP(N, dl , DAG))
5184351844 return R;
5184451845
5184551846 if (SDValue ShiftRight = combineAndMaskToShift(N, dl, DAG, Subtarget))
0 commit comments