[llvm-branch-commits] [llvm] [NFC][KeyInstr] Add Atom Group (re)mapping (PR #133479)

Jeremy Morse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Apr 10 08:05:08 PDT 2025


================
@@ -87,6 +87,8 @@ class ValueMap {
   using ValueMapCVH = ValueMapCallbackVH<KeyT, ValueT, Config>;
   using MapT = DenseMap<ValueMapCVH, ValueT, DenseMapInfo<ValueMapCVH>>;
   using MDMapT = DenseMap<const Metadata *, TrackingMDRef>;
+  /// Map {(InlinedAt, old atom number) -> new atom number}.
+  using DMAtomT = DenseMap<std::pair<Metadata *, uint64_t>, uint64_t>;
----------------
jmorse wrote:

Consider using SmallDenseMap simply to reduce the initial allocations in the non-debug-info codepath?

https://github.com/llvm/llvm-project/pull/133479


More information about the llvm-branch-commits mailing list