[llvm] [Pass] Add `eraseIf` in pass managers and adaptors (PR #116912)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 16:31:40 PST 2024


aeubanks wrote:

the [legacy pass manager does the filtering when adding passes](https://github.com/llvm/llvm-project/blob/905e831f8c8341e53e7e3adc57fd20b8e08eb999/llvm/lib/CodeGen/TargetPassConfig.cpp#L712) rather than after the fact, and I like that better than examining passes after the fact. and I thought we already handled this [here](https://github.com/llvm/llvm-project/blob/905e831f8c8341e53e7e3adc57fd20b8e08eb999/llvm/include/llvm/Passes/CodeGenPassBuilder.h#L585). I think the description in this PR/#116913 is lacking the motivation behind over the current implementation

https://github.com/llvm/llvm-project/pull/116912


More information about the llvm-commits mailing list