[flang-commits] [flang] [Flang] Moving MIFOpConverion pass earlier (PR #184342)

via flang-commits flang-commits at lists.llvm.org
Tue Mar 3 07:30:31 PST 2026


================
@@ -0,0 +1,101 @@
+// RUN: fir-opt --mif-convert %s | FileCheck %s
----------------
jeanPerier wrote:

nit: the test is already passing with your patch since this only exercise the mif conversion pass, and not the combination of the MIF + CFG conversion passes.
I think you would need to test `fir-opt --mif-convert -cfg-conversion` to show that this order works, although I would anyway advise fixing the mif conversion pass instead and adding a test `--mif-convert` with several blocks instead.

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


More information about the flang-commits mailing list