We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7be2bf commit 74555fdCopy full SHA for 74555fd
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -18933,10 +18933,9 @@ SDValue DAGCombiner::visitINSERT_VECTOR_ELT(SDNode *N) {
18933
if (InVec.isUndef() && TLI.shouldSplatInsEltVarIndex(VT)) {
18934
if (VT.isScalableVector())
18935
return DAG.getSplatVector(VT, DL, InVal);
18936
- else {
18937
- SmallVector<SDValue, 8> Ops(VT.getVectorNumElements(), InVal);
18938
- return DAG.getBuildVector(VT, DL, Ops);
18939
- }
+
+ SmallVector<SDValue, 8> Ops(VT.getVectorNumElements(), InVal);
+ return DAG.getBuildVector(VT, DL, Ops);
18940
}
18941
return SDValue();
18942
0 commit comments