File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
llvm/lib/CodeGen/SelectionDAG Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -22443,17 +22443,16 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
22443
22443
// -> extract_vector_elt b, 0
22444
22444
// extract_vector_elt (concat_vectors v2i16:a, v2i16:b), 3
22445
22445
// -> extract_vector_elt b, 1
22446
- SDLoc SL(N);
22447
22446
EVT ConcatVT = VecOp.getOperand(0).getValueType();
22448
22447
unsigned ConcatNumElts = ConcatVT.getVectorNumElements();
22449
- SDValue NewIdx = DAG.getConstant(Elt % ConcatNumElts, SL ,
22448
+ SDValue NewIdx = DAG.getConstant(Elt % ConcatNumElts, DL ,
22450
22449
Index.getValueType());
22451
22450
22452
22451
SDValue ConcatOp = VecOp.getOperand(Elt / ConcatNumElts);
22453
- SDValue Elt = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, SL ,
22452
+ SDValue Elt = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, DL ,
22454
22453
ConcatVT.getVectorElementType(),
22455
22454
ConcatOp, NewIdx);
22456
- return DAG.getNode(ISD::BITCAST, SL , ScalarVT, Elt);
22455
+ return DAG.getNode(ISD::BITCAST, DL , ScalarVT, Elt);
22457
22456
}
22458
22457
22459
22458
// Make sure we found a non-volatile load and the extractelement is
You can’t perform that action at this time.
0 commit comments