[Mlir-commits] [mlir] [MLIR][Linalg] Fix crash in Generic, Map, Reduce Ops for `getAsmBlockArgumentNames` when region is empty (PR #184743)

Matthias Springer llvmlistbot at llvm.org
Thu Mar 5 02:37:04 PST 2026


matthias-springer wrote:

The problem here is that `-test-ir-visitors` produces invalid IR (`linalg` op with empty region) and prints some of that IR. What I don't understand is why the crash is producible only with `--mlir-print-assume-verified`.

I'm also not sure if this is really a bug: if the IR is invalid, it's OK for `mlir-opt` to crash when you set `--mlir-print-assume-verified`. This flag skips verification and lots of IR will crash when round-tripping through `mlir-opt`. I'd say this is working as expected.

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


More information about the Mlir-commits mailing list