Added getInliningCostEstimate, which is essentially what getInlineCost
computes if passed default inlining params, and non-null ORE or
InlineParams::ComputeFullInlineCost.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Why not passing the 'computeFullCost' as an additional parameter to InlineCostAnalyzer?
llvm/lib/Analysis/InlineCost.cpp | ||
---|---|---|
716 | should it define 'shouldStop()' to return false? |
Comment Actions
Because InlineCostAnalyzer's finalizeAnalysis looks at threshold (see lines 633-635).
Clarified documentation of the new API.
Comment Actions
Perhaps add a 'ignoreThreshold' state in InlineCostANalyzer then? IgnoreThreshold implies 'ComputeFullCost' and will be honored by the finalize Method.
should it define 'shouldStop()' to return false?