Skip to content

Commit 0ff9660

Browse files
kazutakahirataAnkur-0429
authored andcommitted
[Target] Construct SmallVector with ArrayRef (NFC) (llvm#134019)
1 parent ab3c4d5 commit 0ff9660

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14992,8 +14992,7 @@ SDValue PPCTargetLowering::DAGCombineExtBoolTrunc(SDNode *N,
1499214992
}
1499314993
}
1499414994

14995-
SmallVector<SDValue, 3> Ops(PromOp.getNode()->op_begin(),
14996-
PromOp.getNode()->op_end());
14995+
SmallVector<SDValue, 3> Ops(PromOp.getNode()->ops());
1499714996

1499814997
// If this node has constant inputs, then they'll need to be promoted here.
1499914998
for (unsigned i = 0; i < 2; ++i) {

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17787,8 +17787,7 @@ static SDValue performINSERT_VECTOR_ELTCombine(SDNode *N, SelectionDAG &DAG,
1778717787
ConcatOp = DAG.getNode(ISD::INSERT_VECTOR_ELT, DL, ConcatVT,
1778817788
ConcatOp, InVal, NewIdx);
1778917789

17790-
SmallVector<SDValue> ConcatOps;
17791-
ConcatOps.append(InVec->op_begin(), InVec->op_end());
17790+
SmallVector<SDValue> ConcatOps(InVec->ops());
1779217791
ConcatOps[ConcatOpIdx] = ConcatOp;
1779317792
return DAG.getNode(ISD::CONCAT_VECTORS, DL, VT, ConcatOps);
1779417793
}

0 commit comments

Comments
 (0)