[PATCH] D88855: [BPF][NewPM] Make BPFTargetMachine properly adjust NPM optimizer pipeline

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 6 07:42:23 PDT 2020


aeubanks added a comment.

In D88855#2313492 <https://reviews.llvm.org/D88855#2313492>, @yonghong-song wrote:

> I think I got how to enable npm in opt. It is `-passes` option in `opt -passes='default<O2>' %s`. It looks good. Will stamp it.

Yup that's it.

> I have another patch I plan to land https://reviews.llvm.org/D85570 which inserts a pass for EP_ModuleOptimizerEarly. Does it correspond to NPM registerPipelineStartEPCallback() callback function?

Yes, just like was done here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88855



More information about the llvm-commits mailing list