[llvm] [memprof] Speed up caller-callee pair extraction (PR #116184)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 12:43:58 PST 2024


================
@@ -771,15 +773,26 @@ static Error writeMemProfV3(ProfOStream &OS,
       writeMemProfFrameArray(OS, MemProfData.Frames, FrameHistogram);
 
   uint64_t CallStackPayloadOffset = OS.tell();
+  // The number of elements in the call stack array.
+  unsigned NumElements;
----------------
snehasish wrote:

Initialize to zero?

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


More information about the llvm-commits mailing list