[mlir][memref] Add support for 0-D transfer / subview fold.
authorNicolas Vasilache <nicolas.vasilache@gmail.com>
Thu, 8 Sep 2022 21:50:09 +0000 (14:50 -0700)
committerNicolas Vasilache <nicolas.vasilache@gmail.com>
Thu, 8 Sep 2022 22:25:05 +0000 (15:25 -0700)
commitb7d47ed1da974bdba4d2b74589c985e7190b8d21
tree05779913fc1cf01ace259a717f79333d74d32135
parentfba411aa47e6dcdc0112fb0f873091b3a852730b
[mlir][memref] Add support for 0-D transfer / subview fold.

The 0-d case simply forwards the indexing from the source memref and
works out of the box.

Differential Revision: https://reviews.llvm.org/D133536
mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp
mlir/test/Dialect/MemRef/fold-memref-alias-ops.mlir