[llvm] Add minimum count threshold for indirect call promotion (PR #145282)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 26 10:39:15 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(
----------------
teresajohnson wrote:
Should this be uint64_t to match the type of the Count it is being compared against?
https://github.com/llvm/llvm-project/pull/145282
More information about the llvm-commits
mailing list