[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


================
@@ -4673,9 +4704,10 @@ void IndexBitcodeWriter::writeCombinedGlobalValueSummary() {
     getReferencedTypeIds(FS, ReferencedTypeIds);
 
     writeFunctionHeapProfileRecords(
-        Stream, FS, CallsiteAbbrev, AllocAbbrev,
+        Stream, FS, CallsiteAbbrev, AllocAbbrev, AllocTotalSizeAbbrev,
         /*PerModule*/ false,
-        /*GetValueId*/ [&](const ValueInfo &VI) -> unsigned {
+        /*GetValueId*/
+        [&](const ValueInfo &VI) -> unsigned {
----------------
snehasish wrote:

This formatting change (and the GetStackIndex one below) seems undesirable?

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


More information about the llvm-commits mailing list