[Mlir-commits] [mlir] Adding to execute_region_op some missing support (PR #164159)

Mehdi Amini llvmlistbot at llvm.org
Mon Oct 20 07:42:48 PDT 2025


================
@@ -1604,6 +1604,145 @@ func.func @func_execute_region_inline_multi_yield() {
 
 // -----
 
+// Test case with single scf.yield op inside execute_region and its operand is defined outside the execute_region op.
+// Make scf.execute_region not to return anything.
+
+// CHECK:           scf.execute_region no_inline {
+// CHECK:             scf.yield
+// CHECK:           }
----------------
joker-eph wrote:

Nit: the last two checks aren't useful here. There is always a yield and a closing brace after an execute_region.

Checking for the yield could be useful if you cared about matching the `func.call` first (to check it is inside the region).


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


More information about the Mlir-commits mailing list