[mlir][memref] Fold subview(subview(x))
authorMatthias Springer <springerm@google.com>
Thu, 15 Dec 2022 16:49:46 +0000 (17:49 +0100)
committerMatthias Springer <springerm@google.com>
Thu, 15 Dec 2022 16:50:12 +0000 (17:50 +0100)
commitccb8a4e3f36937a71a526ca4a3fa29895253ee9d
treeef2c5e8ddd080f32c52d476c5a01b6eaaffd5c1a
parent325b58d59f0073c364b29d6e125b809c76484a16
[mlir][memref] Fold subview(subview(x))

Folding of rank-reduced subviews is also supported.

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