diff options
author | Kazu Hirata <kazu@google.com> | 2025-08-18 07:01:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-18 07:01:29 -0700 |
commit | 07eb7b76928d6873c60859a0339591ed9e0f512a (patch) | |
tree | ddd7aecfa30d297d7ba203fb3816763a27a85a94 /llvm/lib/CodeGen/MachineCopyPropagation.cpp | |
parent | 0e52092ff7c1e1a1283fe8c232dd221a170e3fdc (diff) | |
download | llvm-07eb7b76928d6873c60859a0339591ed9e0f512a.zip llvm-07eb7b76928d6873c60859a0339591ed9e0f512a.tar.gz llvm-07eb7b76928d6873c60859a0339591ed9e0f512a.tar.bz2 |
[llvm] Replace SmallSet with SmallPtrSet (NFC) (#154068)
This patch replaces SmallSet<T *, N> with SmallPtrSet<T *, N>. Note
that SmallSet.h "redirects" SmallSet to SmallPtrSet for pointer
element types:
template <typename PointeeType, unsigned N>
class SmallSet<PointeeType*, N> : public SmallPtrSet<PointeeType*, N>
{};
We only have 140 instances that rely on this "redirection", with the
vast majority of them under llvm/. Since relying on the redirection
doesn't improve readability, this patch replaces SmallSet with
SmallPtrSet for pointer element types.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCopyPropagation.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineCopyPropagation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineCopyPropagation.cpp b/llvm/lib/CodeGen/MachineCopyPropagation.cpp index 742de11..e359831 100644 --- a/llvm/lib/CodeGen/MachineCopyPropagation.cpp +++ b/llvm/lib/CodeGen/MachineCopyPropagation.cpp @@ -490,7 +490,7 @@ private: SmallSetVector<MachineInstr *, 8> MaybeDeadCopies; /// Multimap tracking debug users in current BB - DenseMap<MachineInstr *, SmallSet<MachineInstr *, 2>> CopyDbgUsers; + DenseMap<MachineInstr *, SmallPtrSet<MachineInstr *, 2>> CopyDbgUsers; CopyTracker Tracker; |