[llvm] [MemProf] Always add hints to allocations with memprof attributes (PR #157222)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 6 17:02:30 PDT 2025


================
@@ -97,6 +97,10 @@ static cl::opt<unsigned, false, HotColdHintParser>
 static cl::opt<unsigned, false, HotColdHintParser> HotNewHintValue(
     "hot-new-hint-value", cl::Hidden, cl::init(254),
     cl::desc("Value to pass to hot/cold operator new for hot allocation"));
+static cl::opt<unsigned, false, HotColdHintParser> AmbiguousNewHintValue(
+    "ambiguous-new-hint-value", cl::Hidden, cl::init(222),
----------------
snehasish wrote:

SGTM since it's configurable too.

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


More information about the llvm-commits mailing list