[llvm-branch-commits] [llvm] [llvm-profgen] Account for indirect-call promotion limits in the CS pre-inliner (PR #243631)
Wei Wang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Nov 18 23:12:40 PST 2026
================
@@ -135,8 +266,10 @@ bool CSPreInliner::getInlineCandidates(ProfiledCandidateQueue &CQueue,
// check for that.
HasNewCandidate = true;
uint32_t CalleeSize = getFuncSize(CalleeNode);
- CQueue.emplace(CalleeSamples, std::max(CallsiteCount, CalleeEntryCount),
- CalleeSize);
+ ProfiledInlineCandidate Candidate(
----------------
apolloww wrote:
Can we skip rejected callees since they won't pass the check in `shouldInline` anyway? Then we can also drop the extra field `ICPRejected` as well as the check in `shouldInline`. The side effect is the loss of the `PreInlNumCSICPRejected` stats.
https://github.com/llvm/llvm-project/pull/243631
More information about the llvm-branch-commits
mailing list