[PATCH] D80692: Run Coverage pass before other *San passes under new pass manager, round 2

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 28 11:33:25 PDT 2020


leonardchan added inline comments.


================
Comment at: llvm/include/llvm/Passes/PassBuilder.h:597-598
   ///
   /// This extension point allows adding optimizations at the very end of the
   /// function optimization pipeline. A key difference between this and the
   /// legacy PassManager's OptimizerLast callback is that this extension point
----------------
Will need to change the wording on this if this doesn't handle function passes anymore.


================
Comment at: llvm/lib/Passes/PassBuilder.cpp:1078
 
+  for (auto &C : OptimizerLastEPCallbacks)
+    C(MPM, Level);
----------------
Would it be better to add another `SmallVector` and `register*Calback()` for modules in in `PassBuilder` that we could loop through here instead of changing how these extension points work?

I imagine it would still be meaningful in the future to be able to add function passes at the end of the function optimization pipeline.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D80692





More information about the cfe-commits mailing list