Skip to content

Commit 50e222f

Browse files
[MachineSink] Use SmallDenseMap (NFC) (#95676)
The use of SmallDenseMap saves 0.39% of heap allocations during the compilation of a large preprocessed file, namely X86ISelLowering.cpp, for the X86 target.
1 parent 213e308 commit 50e222f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/MachineSink.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ namespace {
138138
DenseSet<Register> RegsToClearKillFlags;
139139

140140
using AllSuccsCache =
141-
DenseMap<MachineBasicBlock *, SmallVector<MachineBasicBlock *, 4>>;
141+
SmallDenseMap<MachineBasicBlock *, SmallVector<MachineBasicBlock *, 4>>;
142142

143143
/// DBG_VALUE pointer and flag. The flag is true if this DBG_VALUE is
144144
/// post-dominated by another DBG_VALUE of the same variable location.

0 commit comments

Comments
 (0)