[llvm] [StaticDataLayout][PGO]Implement reader and writer change for data access profiles (PR #139997)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Sat May 17 08:15:51 PDT 2025


================
@@ -225,6 +228,8 @@ static Error writeMemProfRadixTreeBased(
   OS.write(0ULL); // Reserve space for the memprof call stack payload offset.
   OS.write(0ULL); // Reserve space for the memprof record payload offset.
   OS.write(0ULL); // Reserve space for the memprof record table offset.
+  if (Version == memprof::Version4)
----------------
teresajohnson wrote:

That sounds fine

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


More information about the llvm-commits mailing list