[Mlir-commits] [mlir] [memref] Support non-scalar copies in `reinterpret_cast` elision (PR #203873)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Thu Jul 2 01:52:51 PDT 2026
================
----------------
banach-space wrote:
```suggestion
to offset: [0], sizes: [1, 1], strides: [54, 2]
: memref<1x108xf32> to memref<1x1xf32, strided<[54, 2]>>
```
Keep `[2, 54]` as an example of the weird stuff that `memref.reinterpret_cast` allows:
```mlir
%reinterpret_cast = memref.reinterpret_cast %dst
to offset: [0], sizes: [1, 1], strides: [2, 54]
: memref<1x108xf32> to memref<1x1xf32, strided<[2, 54]>>
```
https://github.com/llvm/llvm-project/pull/203873
More information about the Mlir-commits
mailing list