[Mlir-commits] [mlir] [MLIR][Linalg] pack, unpack to take memref inputs (PR #129036)

Han-Chung Wang llvmlistbot at llvm.org
Fri Mar 28 11:08:22 PDT 2025


================

----------------
hanhanW wrote:

Some patterns in the file only works for tensors. E.g., `SimplifyPackToExpandShape` always replaces it with `tensor.expand_shape` op. I think you need to revisit all the patterns and bail out when the pack/unpack op does not have pure tensor semantics.

We can bail out for all the cases and relax patterns for memref later. IMO, we should not leave it as a crash or unhandled failure when we add the memref semantics to pack/unpack ops.

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


More information about the Mlir-commits mailing list