aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-06-15 13:21:07 -0700
committerGitHub <noreply@github.com>2024-06-15 13:21:07 -0700
commit50e222fa27bb636a392a6d6065f03a5469526ebf (patch)
tree4e4d22d37333b53808051ac83f4e8d0a78e05099 /llvm/lib/CodeGen
parent213e308633e533f74f04269766989bb89fde0921 (diff)
downloadllvm-50e222fa27bb636a392a6d6065f03a5469526ebf.zip
llvm-50e222fa27bb636a392a6d6065f03a5469526ebf.tar.gz
llvm-50e222fa27bb636a392a6d6065f03a5469526ebf.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineSink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp
index 81b2fcfe..76947a4 100644
--- a/llvm/lib/CodeGen/MachineSink.cpp
+++ b/llvm/lib/CodeGen/MachineSink.cpp
@@ -138,7 +138,7 @@ namespace {
DenseSet<Register> RegsToClearKillFlags;
using AllSuccsCache =
- DenseMap<MachineBasicBlock *, SmallVector<MachineBasicBlock *, 4>>;
+ SmallDenseMap<MachineBasicBlock *, SmallVector<MachineBasicBlock *, 4>>;
/// DBG_VALUE pointer and flag. The flag is true if this DBG_VALUE is
/// post-dominated by another DBG_VALUE of the same variable location.