Skip to content

Commit b7e4a8a

Browse files
committed
[X86] LowerIntVSETCC_AVX512 - reuse existing SDLoc. NFC.
1 parent 0cc6023 commit b7e4a8a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23104,14 +23104,12 @@ static SDValue splitIntVSETCC(EVT VT, SDValue LHS, SDValue RHS,
2310423104
DAG.getNode(ISD::SETCC, dl, HiVT, LHS2, RHS2, CC));
2310523105
}
2310623106

23107-
static SDValue LowerIntVSETCC_AVX512(SDValue Op, SelectionDAG &DAG) {
23108-
23107+
static SDValue LowerIntVSETCC_AVX512(SDValue Op, const SDLoc &dl,
23108+
SelectionDAG &DAG) {
2310923109
SDValue Op0 = Op.getOperand(0);
2311023110
SDValue Op1 = Op.getOperand(1);
2311123111
SDValue CC = Op.getOperand(2);
2311223112
MVT VT = Op.getSimpleValueType();
23113-
SDLoc dl(Op);
23114-
2311523113
assert(VT.getVectorElementType() == MVT::i1 &&
2311623114
"Cannot set masked compare for this operation");
2311723115

@@ -23387,7 +23385,7 @@ static SDValue LowerVSETCC(SDValue Op, const X86Subtarget &Subtarget,
2338723385
// But there is no compare instruction for i8 and i16 elements in KNL.
2338823386
assert((VTOp0.getScalarSizeInBits() >= 32 || Subtarget.hasBWI()) &&
2338923387
"Unexpected operand type");
23390-
return LowerIntVSETCC_AVX512(Op, DAG);
23388+
return LowerIntVSETCC_AVX512(Op, dl, DAG);
2339123389
}
2339223390

2339323391
// Lower using XOP integer comparisons.

0 commit comments

Comments
 (0)