[Mlir-commits] [mlir] [mlir][memref] Support reducing copied dims to non-unit in reinterpret_cast elision (PR #209536)

ioana ghiban llvmlistbot at llvm.org
Wed Jul 15 02:00:21 PDT 2026


================
@@ -418,9 +425,8 @@ func.func private @negative_copy_1D_into_2D_strided_zero_offset_dynamic_stride(%
   return
 }
 
-/// 4 is collapsed to a non-unit dimension.
-// CHECK-LABEL: func.func private @negative_copy_1D_into_2D_strided_diff_dim_sizes(
-func.func private @negative_copy_1D_into_2D_strided_diff_dim_sizes(
+// CHECK-LABEL: func.func private @negative_copy_1D_into_2D_more_reduced_dims(
----------------
ioghiban wrote:

Added `@negative_copy_into_strided_no_truncated_dims` test to show the rewrite being skipped if reinterpret_cast changes no dimensions.

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


More information about the Mlir-commits mailing list