[llvm] ecd59f8 - [SelectionDAG] Use SmallVectorImpl& to avoid repeating SmallVector size. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 22:11:31 PST 2024
Author: Craig Topper
Date: 2024-12-19T22:03:42-08:00
New Revision: ecd59f802f9436c766d85ccde13a9f2b863dc5a6
URL: https://github.com/llvm/llvm-project/commit/ecd59f802f9436c766d85ccde13a9f2b863dc5a6
DIFF: https://github.com/llvm/llvm-project/commit/ecd59f802f9436c766d85ccde13a9f2b863dc5a6.diff
LOG: [SelectionDAG] Use SmallVectorImpl& to avoid repeating SmallVector size. NFC
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 07749ec87d0b20..20119537b631fe 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -11872,7 +11872,7 @@ bool operator<(const UseMemo &L, const UseMemo &R) {
/// pointed to by a UseMemo is deleted, set the User to nullptr to indicate that
/// the node already has been taken care of recursively.
class RAUOVWUpdateListener : public SelectionDAG::DAGUpdateListener {
- SmallVector<UseMemo, 4> &Uses;
+ SmallVectorImpl<UseMemo> &Uses;
void NodeDeleted(SDNode *N, SDNode *E) override {
for (UseMemo &Memo : Uses)
@@ -11881,7 +11881,7 @@ class RAUOVWUpdateListener : public SelectionDAG::DAGUpdateListener {
}
public:
- RAUOVWUpdateListener(SelectionDAG &d, SmallVector<UseMemo, 4> &uses)
+ RAUOVWUpdateListener(SelectionDAG &d, SmallVectorImpl<UseMemo> &uses)
: SelectionDAG::DAGUpdateListener(d), Uses(uses) {}
};
More information about the llvm-commits
mailing list