This isn't expected to reduce compilation times as max-iters is set to one by default, but it helps with recursive functions that require higher iteration counts.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM basically. Only suggestions on nit.
And I suggest the title should contain one [NFC] tag.
llvm/lib/Transforms/IPO/FunctionSpecialization.cpp | ||
---|---|---|
547–548 | The implementation should be right but it didn't implement in the usual style so that readers might be slightly confused at the first sight. I suggest: The implementation for analyzeFunction might need to be changed slightly too: it need to an assertion to check F is not cached and insert the result to FunctionMetrics. |
The implementation should be right but it didn't implement in the usual style so that readers might be slightly confused at the first sight. I suggest:
The implementation for analyzeFunction might need to be changed slightly too: it need to an assertion to check F is not cached and insert the result to FunctionMetrics.