[Mlir-commits] [mlir] [MLIR] Introduce support for early exits (PR #166688)

Renato Golin llvmlistbot at llvm.org
Sun Mar 29 11:49:59 PDT 2026


================

----------------
rengolin wrote:

There were many comments on the original RFC about escaping regions that weren't counting on that behaviour. Do we make any guarantees now?

Would it escape _any_ region? What about:

```mlir
loop {
  my_fialect.op {
    if {
      linalg.generic {
        break N
      }
    }
  }
}
```

Even if we only have all these guarantees for SCF regions, then why do we even need a new loop op?

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


More information about the Mlir-commits mailing list