Skip to content

Commit 74555fd

Browse files
committed
[DAG] visitINSERT_VECTOR_ELT - break if-else chain as they both return (style). NFC.
1 parent d7be2bf commit 74555fd

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18933,10 +18933,9 @@ SDValue DAGCombiner::visitINSERT_VECTOR_ELT(SDNode *N) {
1893318933
if (InVec.isUndef() && TLI.shouldSplatInsEltVarIndex(VT)) {
1893418934
if (VT.isScalableVector())
1893518935
return DAG.getSplatVector(VT, DL, InVal);
18936-
else {
18937-
SmallVector<SDValue, 8> Ops(VT.getVectorNumElements(), InVal);
18938-
return DAG.getBuildVector(VT, DL, Ops);
18939-
}
18936+
18937+
SmallVector<SDValue, 8> Ops(VT.getVectorNumElements(), InVal);
18938+
return DAG.getBuildVector(VT, DL, Ops);
1894018939
}
1894118940
return SDValue();
1894218941
}

0 commit comments

Comments
 (0)