[flang-commits] [flang] [Flang][bbc] Prevent bbc -emit-fir command invoking all passes twice (PR #80927)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Wed Feb 7 03:20:54 PST 2024


https://github.com/tblah requested changes to this pull request.

Hi, thanks for looking into this.

Only the verifier pass is invoked twice. You can see this using `bbc --mlir-pass-statistics`.

I don't think this is the right fix. This patch would cause the verifier pass not to be run at all when `-emit-hlfir` is used. I think you should bring the second `pm.run(mlirModule)` out of the if statement.

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


More information about the flang-commits mailing list