PGO Inlining Policy #43914
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
Milestone
Implement an inlining policy that takes PGO data more directly into account.
The general heuristic for an inline should be something like:
Suggest we start with the
ModelPolicy
which already has most of this structure, and amend/modify/clone it. Make the threshold adjustable and start to experiment.We can use the size estimates that it produces as that seemed fairly accurate (in particular pretty good at predicting size-decreasing inlines).
Perhaps leave off global importance for now as we can't necessarily infer from TieredPGO how often a method is called, the value will depend in part on the rate of promotion to Tier1. So low method entry count may just mean the method got tiered up quickly (on the other hand, a high count does mean the method is called a lot).
The text was updated successfully, but these errors were encountered: