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

ioana ghiban llvmlistbot at llvm.org
Fri Jun 19 04:00:32 PDT 2026


================
@@ -42,26 +47,31 @@ static std::optional<SmallVector<int64_t>> getIdentityStrides(MemRefType type) {
   return strides;
 }
 
+/// Non-unit strided memref dimensions are lowered to loops over base memref
+/// dimensions. Static reinterpret_cast strides connect those dimension spaces
+/// in the currently supported cases.
----------------
ioghiban wrote:

Good point. Please have another look and let me know if the comments abide by this principle.

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


More information about the Mlir-commits mailing list