[llvm] [MemProf] Disable alloc context in combined summary for ndebug builds (PR #139161)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Fri May 9 16:01:28 PDT 2025
================
@@ -99,6 +99,22 @@ static cl::opt<bool> WriteRelBFToSummary(
"write-relbf-to-summary", cl::Hidden, cl::init(false),
cl::desc("Write relative block frequency to function summary "));
+// Since we only use the context information in the memprof summary records in
+// the LTO backends to do assertion checking, save time and space by only
+// serializing the context for non-NDEBUG builds.
+// TODO: Currently this controls writing context of the allocation info records,
+// which are larger and more expensive, but we should do this for the callsite
+// records as well.
+// FIXME: Convert to a const once this has undergone more sigificant testing.
+static cl::opt<bool>
+ CombinedIndexMemProfContext("combined-index-memprof-context", cl::Hidden,
+#ifndef NDEBUG
----------------
teresajohnson wrote:
done
https://github.com/llvm/llvm-project/pull/139161
More information about the llvm-commits
mailing list