[CodeGen] Construct SmallVector with ArrayRef (NFC) (#143391)

This commit is contained in:
Kazu Hirata
2025-06-09 12:45:52 -07:00
committed by GitHub
parent 787efa78a4
commit 60cd76bc34

View File

@@ -3562,9 +3562,7 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
unsigned Factor = Node->getNumOperands();
if (Factor <= 2 || !isPowerOf2_32(Factor))
break;
SmallVector<SDValue, 8> Ops;
for (SDValue Op : Node->ops())
Ops.push_back(Op);
SmallVector<SDValue, 8> Ops(Node->ops());
EVT VecVT = Node->getValueType(0);
SmallVector<EVT> HalfVTs(Factor / 2, VecVT);
// Deinterleave at Factor/2 so each result contains two factors interleaved: