Skip to content

Commit

Permalink
[SelectionDAG] Construct SmallVector with ArrayRef (NFC) (#103705)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazutakahirata authored Aug 14, 2024
1 parent d9b9ae6 commit 5ce326c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2278,9 +2278,7 @@ SDValue DAGCombiner::visitMERGE_VALUES(SDNode *N) {
AddUsersToWorklist(N);
do {
// Do as a single replacement to avoid rewalking use lists.
SmallVector<SDValue, 8> Ops;
for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i)
Ops.push_back(N->getOperand(i));
SmallVector<SDValue, 8> Ops(N->ops());
DAG.ReplaceAllUsesWith(N, Ops.data());
} while (!N->use_empty());
deleteAndRecombine(N);
Expand Down

0 comments on commit 5ce326c

Please sign in to comment.