getSpecializationCost was returning INT_MAX for a case when specialisation shouldn't happen, but this wasn't properly checked with specialisation was forced.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D104461
[FuncSpec] Don't specialize functions with NoDuplicate instructions. ClosedPublic Authored by SjoerdMeijer on Jun 17 2021, 7:06 AM.
Details Summary getSpecializationCost was returning INT_MAX for a case when specialisation shouldn't happen, but this wasn't properly checked with specialisation was forced.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 17 2021, 7:00 PM Closed by commit rG342bbb7832b6: [FuncSpec] Don't specialise functions with NoDuplicate instructions. (authored by SjoerdMeijer). · Explain WhyJun 21 2021, 1:02 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 353291 llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
llvm/test/Transforms/FunctionSpecialization/function-specialization-nodup2.ll
|