Support affine.load/store ops in fold-memref-subview-ops pass
authorUday Bondhugula <uday@polymagelabs.com>
Sun, 30 Jan 2022 13:17:03 +0000 (18:47 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Mon, 31 Jan 2022 04:40:49 +0000 (10:10 +0530)
commitf8a2cd67b9ad414508235b9bd1489651ed9938e6
treee7887ddf366c2b335badc4a0f59ba7f2367c8ac7
parent73cfa982ba6380ee96c017d044f3f580eb8e18bd
Support affine.load/store ops in fold-memref-subview-ops pass

Support affine.load/store ops in fold-memref-subview ops pass. The
existing pass just "inlines" the subview operation on load/stores by
inserting affine.apply ops in front of the memref load/store ops: this
is by design always consistent with the semantics on affine.load/store
ops and the same would work even more naturally/intuitively with the
latter.

Differential Revision: https://reviews.llvm.org/D118565
mlir/lib/Dialect/MemRef/Transforms/FoldSubViewOps.cpp
mlir/test/Dialect/MemRef/fold-subview-ops.mlir