================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to