(Note: It will be cleaner to expose the OptimizationLevel enum to InlineCost and Inliner instead of mapping back from the enum to SizeLevel/OptLevel, but I don't know what is the right header file to move the enum into)
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Passes/PassBuilder.cpp | ||
---|---|---|
558 ↗ | (On Diff #102915) | As discussed in person, I would just call 'getInlineParams' here and use the existing constructor of the pass object. |
Comment Actions
Call getInlineParams in PassBuilder and pass the Params object to the existing Inliner constructor.
Comment Actions
Minor nitpick below. Feel free to submit.
lib/Passes/PassBuilder.cpp | ||
---|---|---|
872–873 ↗ | (On Diff #104333) | Noting that this is duplicated, maybe a static helper function: static InlineParams getInlineParamsFromOptLevel(...) And have it do the call to getInlineParams? |