[PATCH] D33382: [PartialInlining] introduce an internal option to add partial inlining pass in the pipeline (off by default for now)

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 22 09:25:27 PDT 2017


davide accepted this revision.
davide added a comment.
This revision is now accepted and ready to land.

I'm not entirely sure whether you need `cl::ZeroOrMore`. Few comments, with that, LG.
Feel free to submit once addressed without another round trip.

Thanks!



================
Comment at: lib/Passes/PassBuilder.cpp:153-156
+static cl::opt<bool>
+RunPartialInlining("npm-partial-inlining", cl::init(false),
+                   cl::Hidden, cl::ZeroOrMore,
+                   cl::desc("Run Partial inlinining pass"));
----------------
For consistency with other options (i.e. GVNHoist), I'd use `enable-npm-*`


================
Comment at: lib/Transforms/IPO/PassManagerBuilder.cpp:47-50
+RunPartialInlining("partial-inlining", cl::init(false),
+                   cl::Hidden, cl::ZeroOrMore,
+                   cl::desc("Run Partial inlinining pass"));
+
----------------
Same here, `enable-partial-inlining`.


https://reviews.llvm.org/D33382





More information about the llvm-commits mailing list