(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 7718 Build 7718: arc lint + arc unit
Event Timeline
lib/Passes/PassBuilder.cpp | ||
---|---|---|
571 | 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 | ||
---|---|---|
878–880 | 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.