@@ -20120,12 +20120,11 @@ SDValue X86TargetLowering::FP_TO_INTHelper(SDValue Op, SelectionDAG &DAG,
20120
20120
return Res;
20121
20121
}
20122
20122
20123
- static SDValue LowerAVXExtend(SDValue Op, SelectionDAG &DAG,
20123
+ static SDValue LowerAVXExtend(SDValue Op, const SDLoc &dl, SelectionDAG &DAG,
20124
20124
const X86Subtarget &Subtarget) {
20125
20125
MVT VT = Op.getSimpleValueType();
20126
20126
SDValue In = Op.getOperand(0);
20127
20127
MVT InVT = In.getSimpleValueType();
20128
- SDLoc dl(Op);
20129
20128
unsigned Opc = Op.getOpcode();
20130
20129
20131
20130
assert(VT.isVector() && InVT.isVector() && "Expected vector type");
@@ -20196,14 +20195,13 @@ static SDValue SplitAndExtendv16i1(unsigned ExtOpc, MVT VT, SDValue In,
20196
20195
return DAG.getNode(ISD::TRUNCATE, dl, VT, Res);
20197
20196
}
20198
20197
20199
- static SDValue LowerZERO_EXTEND_Mask(SDValue Op,
20200
- const X86Subtarget &Subtarget,
20201
- SelectionDAG &DAG) {
20198
+ static SDValue LowerZERO_EXTEND_Mask(SDValue Op, const SDLoc &DL ,
20199
+ const X86Subtarget &Subtarget,
20200
+ SelectionDAG &DAG) {
20202
20201
MVT VT = Op->getSimpleValueType(0);
20203
20202
SDValue In = Op->getOperand(0);
20204
20203
MVT InVT = In.getSimpleValueType();
20205
20204
assert(InVT.getVectorElementType() == MVT::i1 && "Unexpected input type!");
20206
- SDLoc DL(Op);
20207
20205
unsigned NumElts = VT.getVectorNumElements();
20208
20206
20209
20207
// For all vectors, but vXi8 we can just emit a sign_extend and a shift. This
@@ -20258,12 +20256,13 @@ static SDValue LowerZERO_EXTEND(SDValue Op, const X86Subtarget &Subtarget,
20258
20256
SelectionDAG &DAG) {
20259
20257
SDValue In = Op.getOperand(0);
20260
20258
MVT SVT = In.getSimpleValueType();
20259
+ SDLoc DL(Op);
20261
20260
20262
20261
if (SVT.getVectorElementType() == MVT::i1)
20263
- return LowerZERO_EXTEND_Mask(Op, Subtarget, DAG);
20262
+ return LowerZERO_EXTEND_Mask(Op, DL, Subtarget, DAG);
20264
20263
20265
20264
assert(Subtarget.hasAVX() && "Expected AVX support");
20266
- return LowerAVXExtend(Op, DAG, Subtarget);
20265
+ return LowerAVXExtend(Op, DL, DAG, Subtarget);
20267
20266
}
20268
20267
20269
20268
/// Helper to recursively truncate vector elements in half with PACKSS/PACKUS.
@@ -24310,16 +24309,14 @@ SDValue X86TargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
24310
24309
return DAG.getNode(X86ISD::CMOV, DL, Op.getValueType(), Ops, Op->getFlags());
24311
24310
}
24312
24311
24313
- static SDValue LowerSIGN_EXTEND_Mask(SDValue Op,
24312
+ static SDValue LowerSIGN_EXTEND_Mask(SDValue Op, const SDLoc &dl,
24314
24313
const X86Subtarget &Subtarget,
24315
24314
SelectionDAG &DAG) {
24316
24315
MVT VT = Op->getSimpleValueType(0);
24317
24316
SDValue In = Op->getOperand(0);
24318
24317
MVT InVT = In.getSimpleValueType();
24319
24318
assert(InVT.getVectorElementType() == MVT::i1 && "Unexpected input type!");
24320
24319
MVT VTElt = VT.getVectorElementType();
24321
- SDLoc dl(Op);
24322
-
24323
24320
unsigned NumElts = VT.getVectorNumElements();
24324
24321
24325
24322
// Extend VT if the scalar type is i8/i16 and BWI is not supported.
@@ -24371,12 +24368,13 @@ static SDValue LowerANY_EXTEND(SDValue Op, const X86Subtarget &Subtarget,
24371
24368
SelectionDAG &DAG) {
24372
24369
SDValue In = Op->getOperand(0);
24373
24370
MVT InVT = In.getSimpleValueType();
24371
+ SDLoc DL(Op);
24374
24372
24375
24373
if (InVT.getVectorElementType() == MVT::i1)
24376
- return LowerSIGN_EXTEND_Mask(Op, Subtarget, DAG);
24374
+ return LowerSIGN_EXTEND_Mask(Op, DL, Subtarget, DAG);
24377
24375
24378
24376
assert(Subtarget.hasAVX() && "Expected AVX support");
24379
- return LowerAVXExtend(Op, DAG, Subtarget);
24377
+ return LowerAVXExtend(Op, DL, DAG, Subtarget);
24380
24378
}
24381
24379
24382
24380
// Lowering for SIGN_EXTEND_VECTOR_INREG and ZERO_EXTEND_VECTOR_INREG.
@@ -24514,7 +24512,7 @@ static SDValue LowerSIGN_EXTEND(SDValue Op, const X86Subtarget &Subtarget,
24514
24512
SDLoc dl(Op);
24515
24513
24516
24514
if (InVT.getVectorElementType() == MVT::i1)
24517
- return LowerSIGN_EXTEND_Mask(Op, Subtarget, DAG);
24515
+ return LowerSIGN_EXTEND_Mask(Op, dl, Subtarget, DAG);
24518
24516
24519
24517
assert(VT.isVector() && InVT.isVector() && "Expected vector type");
24520
24518
assert(VT.getVectorNumElements() == InVT.getVectorNumElements() &&
0 commit comments