[Mlir-commits] [mlir] [mlir][affine] Use iter argument replace init when delete loop in the coalesceLoops function (PR #169514)

Jakub Kuderski llvmlistbot at llvm.org
Sun Nov 30 14:40:36 PST 2025


================
@@ -416,3 +416,34 @@ func.func @test_loops_do_not_get_coalesced() {
 // CHECK-NEXT: }
 // CHECK-NEXT: }
 // CHECK-NEXT: return
+
+// -----
+
+// CHECK-LABEL: func @inner_loop_has_iter_args
+func.func @inner_loop_has_iter_args() {
+  %c17 = arith.constant 17 : index
+  %c79 = arith.constant 79 : index
+  %memref = gpu.alloc  (%c79) : memref<?xi64>
----------------
kuhar wrote:

can we make this a function argument?

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


More information about the Mlir-commits mailing list