[Mlir-commits] [mlir] [memref] Support non-scalar copies in `reinterpret_cast` elision (PR #203873)

ioana ghiban llvmlistbot at llvm.org
Mon Jun 29 04:38:41 PDT 2026


================
@@ -70,35 +71,17 @@ func.func private @concat_dynamic_offset(%offset: index, %src : memref<1x1xf32>,
   memref.copy %src, %reinterpret_cast
     : memref<1x1xf32>
       to memref<1x1xf32, strided<[1, 1], offset: ?>>
-  return
-}
-
-// CHECK-LABEL: func.func private @concat_strided(
-// CHECK-SAME:   %[[SRC:.*]]: memref<1x1xf32>
-// CHECK-SAME:   %[[DST:.*]]: memref<1x108xf32>
-func.func private @concat_strided(%src : memref<1x1xf32>,
----------------
ioghiban wrote:

It was in my TODOs to add it back - `@copy_scalar_into_1D_strided_static_stride`

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


More information about the Mlir-commits mailing list