(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
- Build Status
Buildable 7703 Build 7703: arc lint + arc unit
Event Timeline
lib/Passes/PassBuilder.cpp | ||
---|---|---|
563 | 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 | Noting that this is duplicated, maybe a static helper function: static InlineParams getInlineParamsFromOptLevel(...) And have it do the call to getInlineParams? |
As discussed in person, I would just call 'getInlineParams' here and use the existing constructor of the pass object.