[PATCH] D130952: [Inliner] Handle multiple `run` invocation of `ModuleInlinerWrapperPass` (NFC).

Michele Scandale via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 2 08:29:11 PDT 2022


michele.scandale added a comment.

In D130952#3692584 <https://reviews.llvm.org/D130952#3692584>, @mtrofin wrote:

> asking to learn - what's the motivation for running ::run more than once / why not have different instances of ModuleInlinerWrapperPass?

The use case I'm looking into is a system processing several modules with a custom optimization pipeline where I'd like to pay the setup cost of building the pass manager only once rather than for each module being processed.
This is something that used to work (modulo bugs once in a while) with the legacy pass manager. I'm trying this with the new pass manager infrastructure, and found few issues while experimenting (the issue addressed here, D130954 <https://reviews.llvm.org/D130954> and D130955 <https://reviews.llvm.org/D130955>).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130952



More information about the llvm-commits mailing list