[llvm] [ICP] Introduce a hot function cutoff threshold for ICP (PR #208060)
Congzhe Cao via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 21:17:26 PDT 2026
================
@@ -0,0 +1,98 @@
+; RUN: opt < %s -passes=pgo-icall-prom -hot-func-cutoff-for-icp=200000 -pass-remarks=pgo-icall-prom 2>&1 | FileCheck %s --check-prefix=PASS-REMARK
+; RUN: opt < %s -passes=pgo-icall-prom -hot-func-cutoff-for-icp=100000 -pass-remarks=pgo-icall-prom 2>&1 | FileCheck %s --check-prefix=FAIL-REMARK
+; RUN: opt < %s -passes=pgo-icall-prom -pass-remarks=pgo-icall-prom 2>&1 | FileCheck %s --check-prefix=PASS-REMARK-DEFAULT
+
+; ICP has its own cutoff threshold for hotness that can be tuned.
+
+; PASS-REMARK: remark: <unknown>:0:0: Promote indirect call to func4 with count 5 out of 14
----------------
CongzheUalberta wrote:
Thanks, I’ve added the comment.
https://github.com/llvm/llvm-project/pull/208060
More information about the llvm-commits
mailing list