[PATCH] D91585: [NPM] Move more O0 pass building into PassBuilder

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 10:13:31 PST 2020


tejohnson added inline comments.


================
Comment at: llvm/lib/Passes/PassBuilder.cpp:2365
+        Matches[1] != "lto") {
+      MPM.addPass(buildO0DefaultPipeline(L, Matches[1] != "default"));
       return Error::success();
----------------
tejohnson wrote:
> I think it would be clearer to check against "thinlto-pre-link" and "lto-pre-link" here (and more robust in case any other types added in the future).
Sorry, to be more explicit, I was talking about the below line, where it sets up the LTOPreLink parameter to buildO0DefaultPipeline. I think the above line is actually better the way it was (checking != "thinlto" and != "lto").


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91585/new/

https://reviews.llvm.org/D91585



More information about the llvm-commits mailing list