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

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 5 21:29:12 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),
----------------
teresajohnson wrote:

I picked a random value for this one, open to suggestions. We currently use 1 for cold, 128 for notcold, and 254 for hot.

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


More information about the llvm-commits mailing list