[llvm] [MemProf] Extend MemProfUse pass to make use of data access profiles to partition data (PR #151238)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 25 12:13:39 PDT 2025
================
@@ -75,6 +76,17 @@ static cl::opt<unsigned> MinMatchedColdBytePercent(
"memprof-matching-cold-threshold", cl::init(100), cl::Hidden,
cl::desc("Min percent of cold bytes matched to hint allocation cold"));
+static cl::opt<bool> AnnotationStaticDataPrefix(
+ "annotate-static-data-prefix", cl::init(false), cl::Hidden,
+ cl::desc("If true, annotate the static data section prefix"));
+
+static cl::opt<bool>
+ PrintStaticDataPrefix("print-static-data-prefix", cl::init(false),
----------------
snehasish wrote:
Instead of adding an option, can we wrap the entire logic in LLVM_DEBUG({ ... });
https://github.com/llvm/llvm-project/pull/151238
More information about the llvm-commits
mailing list