As we will move to use uniformed hotness check in inliner, we do not need inline hints in SampleProfile pass any more.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This looks fine, but let's wait until Easwaran's inliner support lands before submitting this change.
Comment Actions
The PSI based inline decision has already landed upstream. So now it should be OK to remove the hint based algorithm in sample PGO?
lib/Transforms/IPO/SampleProfile.cpp | ||
---|---|---|
86 | Note that the behavior will be different because the threshold for determining cold in ProfileSummary is 1% of max function count and here it is 0.5%. I think this shouldn't matter much, but it is something to be aware of. |
lib/Transforms/IPO/SampleProfile.cpp | ||
---|---|---|
86 | Thanks for the reminder. This should not affect performance much, and shortly we will use callsite hotness for inline cost. |
Note that the behavior will be different because the threshold for determining cold in ProfileSummary is 1% of max function count and here it is 0.5%. I think this shouldn't matter much, but it is something to be aware of.