@@ -22226,7 +22226,7 @@ SDValue DAGCombiner::scalarizeExtractedVectorLoad(SDNode *EVE, EVT InVecVT,
22226
22226
/// Transform a vector binary operation into a scalar binary operation by moving
22227
22227
/// the math/logic after an extract element of a vector.
22228
22228
static SDValue scalarizeExtractedBinop(SDNode *ExtElt, SelectionDAG &DAG,
22229
- bool LegalOperations) {
22229
+ const SDLoc &DL, bool LegalOperations) {
22230
22230
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
22231
22231
SDValue Vec = ExtElt->getOperand(0);
22232
22232
SDValue Index = ExtElt->getOperand(1);
@@ -22251,7 +22251,6 @@ static SDValue scalarizeExtractedBinop(SDNode *ExtElt, SelectionDAG &DAG,
22251
22251
ISD::isConstantSplatVector(Op1.getNode(), SplatVal)) {
22252
22252
// extractelt (binop X, C), IndexC --> binop (extractelt X, IndexC), C'
22253
22253
// extractelt (binop C, X), IndexC --> binop C', (extractelt X, IndexC)
22254
- SDLoc DL(ExtElt);
22255
22254
EVT VT = ExtElt->getValueType(0);
22256
22255
SDValue Ext0 = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, VT, Op0, Index);
22257
22256
SDValue Ext1 = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL, VT, Op1, Index);
@@ -22490,7 +22489,7 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
22490
22489
}
22491
22490
}
22492
22491
22493
- if (SDValue BO = scalarizeExtractedBinop(N, DAG, LegalOperations))
22492
+ if (SDValue BO = scalarizeExtractedBinop(N, DAG, DL, LegalOperations))
22494
22493
return BO;
22495
22494
22496
22495
if (VecVT.isScalableVector())
0 commit comments