[PATCH] D34309: [NewPM/Inliner] Customize threshold based on optlevel and sizelevel

Chandler Carruth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 27 16:33:14 PDT 2017


chandlerc added inline comments.


================
Comment at: lib/Passes/PassBuilder.cpp:558
+  unsigned SizeLevel = Level > O3 ? Level - O3 : 0;
+  MainCGPipeline.addPass(InlinerPass(OptLevel, SizeLevel));
 
----------------
As discussed in person, I would just call 'getInlineParams' here and use the existing constructor of the pass object.


https://reviews.llvm.org/D34309





More information about the llvm-commits mailing list