[Mlir-commits] [mlir] [mlir][vector] ND vectors linearization pass (PR #81159)
Renato Golin
llvmlistbot at llvm.org
Fri Feb 9 01:51:05 PST 2024
rengolin wrote:
Not directly applicable, but [our solution](https://github.com/plaidml/tpp-mlir/blob/9d5f72003cae98468689c829bef33894501237eb/tools/tpp-run/MLIRBench.cpp#L347) to a similar problem in memref was to linearize all but the last dimensions (for D>2).
This would keep the inner dimension intact and not make assumptions about the vector length, but would potentially break noncontiguous higher dimensions if the layout isn't changed accordingly?
But this does require the underlying user (print in out case) to change behaviour, which is not always a generic property.
https://github.com/llvm/llvm-project/pull/81159
More information about the Mlir-commits
mailing list