[llvm] [MemProf] Track and report profiled sizes through cloning (PR #98382)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 18:04:05 PDT 2024


================
@@ -611,6 +614,8 @@ class CallsiteContextGraph {
   /// Map from each context ID to the AllocationType assigned to that context.
   DenseMap<uint32_t, AllocationType> ContextIdToAllocationType;
 
+  std::map<uint32_t, uint64_t> ContextIdToTotalSize;
----------------
snehasish wrote:

I think this can be an unordered map since we don't iterate on the contents?

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


More information about the llvm-commits mailing list