[llvm] Add minimum count threshold for indirect call promotion (PR #145282)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 26 12:09:09 PDT 2025


================
@@ -37,6 +37,12 @@ static cl::opt<unsigned>
                              cl::desc("The percentage threshold against total "
                                       "count for the promotion"));
 
+// Set the minimum absolute count threshold for indirect call promotion.
+// Candidates with counts below this threshold will not be promoted.
+static cl::opt<unsigned> ICPMinimumCountThreshold(
----------------
snehasish wrote:

Done.

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


More information about the llvm-commits mailing list