Unverified Commit 5a23d31c authored by William Junda Huang's avatar William Junda Huang Committed by GitHub
Browse files

[Sample Profile] Check hot callsite threshold when inlining a function with a...

[Sample Profile] Check hot callsite threshold when inlining a function with a sample profile (#93286)

Currently if a callsite is hot as determined by the sample profile, it
is unconditionally inlined barring invalid cases (such as recursion).
Inline cost check should still apply because a function's hotness and
its inline cost are two different things.
For example if a function is calling another very large function
multiple times (at different code paths), the large function should not
be inlined even if its hot.
parent 193e9007
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment