[Mlir-commits] [mlir] [mlir][Interfaces] Add `mustProgress` interface method + folding pattern (PR #179039)

Matthias Springer llvmlistbot at llvm.org
Sat Jan 31 08:17:13 PST 2026


================
@@ -351,6 +351,18 @@ def RegionBranchOpInterface : OpInterface<"RegionBranchOpInterface"> {
       (ins "::mlir::Type":$lhs, "::mlir::Type":$rhs), [{}],
       /*defaultImplementation=*/[{ return lhs == rhs; }]
     >,
+    InterfaceMethod<[{
+        Region branch ops that "must progress" are required to terminate (i.e.,
+        not loop infinitely between their regions) or interact with the
----------------
matthias-springer wrote:

Are you talking about the case where there is a `func.call` to a function inside of the loop and the called function does not terminate?

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


More information about the Mlir-commits mailing list