[Mlir-commits] [mlir] [mlir][tensor] Bufferize tensor.reshape with non-identity layouts (PR #65654)

Spenser Bauman llvmlistbot at llvm.org
Wed Sep 13 08:54:25 PDT 2023


sabauma wrote:

Hi @Lewuathe, are you asking whether the restrictions on `memref.reshape` need to be loosened in order to permit non-identity layout maps? That could be a potential solution, though I am not privy to the reasoning behind the layout map restriction.

At the moment, bufferization can create `memref.reshape` operations with non-identity layouts.
The proposed solution in this change is to allocate a new buffer for the `memref.reshape` when the bufferization process attempts to reuse a buffer with a non-identity layout.

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


More information about the Mlir-commits mailing list