Skip to content

Commit 93c2eec

Browse files
authored
IRMover: Switch to SmallPtrSet (#157226)
Follow up to #157218. But I can't measure a difference on my example.
1 parent c5ed3c6 commit 93c2eec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/include/llvm/Linker/IRMover.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "llvm/ADT/DenseMap.h"
1414
#include "llvm/ADT/DenseSet.h"
1515
#include "llvm/ADT/FunctionExtras.h"
16+
#include "llvm/ADT/SmallPtrSet.h"
1617
#include "llvm/Support/Compiler.h"
1718
#include <functional>
1819

@@ -70,7 +71,8 @@ class IRMover {
7071
using LazyCallback =
7172
llvm::unique_function<void(GlobalValue &GV, ValueAdder Add)>;
7273

73-
using NamedMDNodesT = DenseMap<const NamedMDNode *, DenseSet<const MDNode *>>;
74+
using NamedMDNodesT =
75+
DenseMap<const NamedMDNode *, SmallPtrSet<const MDNode *, 8>>;
7476

7577
/// Move in the provide values in \p ValuesToLink from \p Src.
7678
///

0 commit comments

Comments
 (0)