[Mlir-commits] [mlir] [mlir][memref] Add memref alias folding for masked transfers (PR #71476)

Lei Zhang llvmlistbot at llvm.org
Mon Nov 6 22:36:38 PST 2023


antiagainst wrote:

A tricky part with subview ops in general is rank reducing behavior. Thinking a bit actually it should be fine given that folding rank reducing subview ops into the original memref would just mean we see extra dims in the transfer op permuation map. That will be [compressed when inferTransferOpMaskType](https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/Vector/IR/VectorOps.cpp#L3758-L3773), so we can still use the same mask.

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


More information about the Mlir-commits mailing list