Skip to content

Commit b7d320b

Browse files
committed
Increment OpsNarrowed in another place
1 parent 8393800 commit b7d320b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -23280,7 +23280,13 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
2328023280
if (Elt == -1)
2328123281
return DAG.getUNDEF(LVT);
2328223282

23283-
return TLI.scalarizeExtractedVectorLoad(LVT, DL, VecVT, Index, LN0, DAG);
23283+
if (SDValue Scalarized =
23284+
TLI.scalarizeExtractedVectorLoad(LVT, DL, VecVT, Index, LN0, DAG)) {
23285+
++OpsNarrowed;
23286+
return Scalarized;
23287+
}
23288+
23289+
return SDValue();
2328423290
}
2328523291

2328623292
// Simplify (build_vec (ext )) to (bitcast (build_vec ))

0 commit comments

Comments
 (0)