[llvm] [MemProf] Prune unneeded non-cold contexts (PR #124823)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 07:25:40 PST 2025
================
@@ -51,6 +51,13 @@ cl::opt<bool> MemProfReportHintedSizes(
"memprof-report-hinted-sizes", cl::init(false), cl::Hidden,
cl::desc("Report total allocation sizes of hinted allocations"));
+// This is useful if we have enabled reporting of hinted sizes, and want to get
+// information from the indexing step for all contexts (especially for testing),
+// or have specified a value less than 100% for -memprof-cloning-cold-threshold.
+cl::opt<bool> MemProfKeepAllNotColdContexts(
+ "memprof-keep-all-not-cold-contexts", cl::init(false), cl::Hidden,
+ cl::desc("Disable pruning of non-cold contexts unneeded for cold cloning"));
----------------
teresajohnson wrote:
Updated the flag description per suggestion
https://github.com/llvm/llvm-project/pull/124823
More information about the llvm-commits
mailing list