[llvm] [ICP] Introduce a hot function cutoff threshold for ICP (PR #208060)
Congzhe Cao via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 15 11:48:35 PDT 2026
================
@@ -160,6 +160,11 @@ static cl::list<std::string> ICPIgnoredBaseTypes(
"binary could be different due to profiling limitations. Type info "
"names are those string literals used in LLVM type metadata"));
+static cl::opt<int> HotFuncCutoffForICP(
+ "hot-func-cutoff-for-icp", cl::Hidden, cl::init(990000),
+ cl::desc("A count is hot for indirect call promotion if it exceeds "
+ "the minimum count to reach this percentile of total counts."
+ "Default value is the same as ProfileSummaryCutoffHot."));
----------------
CongzheUalberta wrote:
> That makes sense, I've updated the code accordingly - make the default value of HotFuncCutoffForICP to -1 and when unspecified, use the value of ProfileSummaryCutoffHot, to make it stay in sync. I'd appreciate it if you could let me know how that looks now @teresajohnson .
https://github.com/llvm/llvm-project/pull/208060
More information about the llvm-commits
mailing list