Indices of heuristic inline‐cost feature summands.
Synopsis
Declared in <llvm/Analysis/InlineModelFeatureMaps.h>
enum class InlineCostFeatureIndex : size_t;
Description
A "cost" feature is a summand of the heuristic‐based inline cost. These indices are defined separately from other ML features to preserve the original heuristic behavior. Values match INLINE_COST_FEATURE_ITERATOR order (comments cannot live inside that X‐macro).
Members
Name |
Description |
|
Savings from SROA (scalar replacement of aggregates). |
|
Losses from SROA (scalar replacement of aggregates). |
|
Cost of load elimination in the call. |
|
Accumulation of penalty applied to call sites when inlining. |
|
Accumulation of call argument setup costs. |
|
Accumulation of costs of loading relative intrinsics. |
|
Accumulation of cost of lowered call argument setups. |
|
Accumulation of costs for indirect calls. |
|
Accumulation of costs for jump tables. |
|
Accumulation of costs for case clusters. |
|
Accumulation of costs for switch default destination. |
|
Accumulation of costs for switch statements. |
|
Costs from unsimplified common instructions. |
|
Number of loops in the caller. |
|
Number of dead blocks in the caller. |
|
Number of simplified instructions. |
|
Number of constant arguments in the call site. |
|
Number of constant offset pointer args in the call site. |
|
Estimated cost of the call site. |
|
Penalty for a cold calling convention. |
|
Bonus for being the last call to static. |
|
Boolean; is the callee multiple blocks. |
|
Would the default inliner perform nested inlining. |
|
Estimate of the accumulated cost of nested inlines. |
|
Threshold for the heuristic inliner. |
|
Count of cost features; not itself a feature index. |
Non-Member Functions
Name |
Description |
Map an inline‐cost feature index to the corresponding ML feature index. |
|
Return true if |
Created with MrDocs