[MLIR] Fix fold-memref-subview-ops for affine.load/store
authorUday Bondhugula <uday@polymagelabs.com>
Mon, 31 Jan 2022 11:47:10 +0000 (17:17 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Thu, 10 Feb 2022 08:25:38 +0000 (13:55 +0530)
commitac6cb41303450b4cf8b5c71b971b729990b93a36
tree3acbb446220d046937d1aa708a06ac05ff71d86a
parent35dfa78ff8d44733b1c805309f0bbd4a8c960897
[MLIR] Fix fold-memref-subview-ops for affine.load/store

Fix fold-memref-subview-ops for affine.load/store. We need to expand out
the affine apply on its operands.

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