Skip to content

Commit cb71f48

Browse files
committed
use ScalarVT in visitEXTRACT_VECTOR_ELT
1 parent 688c3ff commit cb71f48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23440,10 +23440,10 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
2344023440

2344123441
// If Idx was -1 above, Elt is going to be -1, so just return undef.
2344223442
if (Elt == -1)
23443-
return DAG.getUNDEF(LVT);
23443+
return DAG.getUNDEF(ScalarVT);
2344423444

23445-
if (SDValue Scalarized =
23446-
TLI.scalarizeExtractedVectorLoad(LVT, DL, VecVT, Index, LN0, DAG)) {
23445+
if (SDValue Scalarized = TLI.scalarizeExtractedVectorLoad(ScalarVT, DL, VecVT,
23446+
Index, LN0, DAG)) {
2344723447
++OpsNarrowed;
2344823448
return Scalarized;
2344923449
}

0 commit comments

Comments
 (0)