The code has changed significantly over time making the description outdated.
In this patch I am re-writing the description with an emphasis to the cost model,
where most of the changes have happened.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM basically. Thanks.
llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h | ||
---|---|---|
23–25 | This is asked several times before. And it is indeed a little bit odd since inlining can cover function specialization abstractly. And we considered this when designing the cost model. What I wanted is to add a post-inlining function specialization pass which can be more aggressive on literal constants. Maybe it is worth to add this as a TODO? This is not required. |
This is asked several times before. And it is indeed a little bit odd since inlining can cover function specialization abstractly. And we considered this when designing the cost model. What I wanted is to add a post-inlining function specialization pass which can be more aggressive on literal constants. Maybe it is worth to add this as a TODO? This is not required.