[mlir][MemRef] Add pattern that forwards constant strided metadata.
authorNicolas Vasilache <nicolas.vasilache@gmail.com>
Thu, 22 Sep 2022 15:52:18 +0000 (08:52 -0700)
committerNicolas Vasilache <nicolas.vasilache@gmail.com>
Mon, 26 Sep 2022 15:34:31 +0000 (08:34 -0700)
commitf7e1ce0f3071849fe9c7932a92038c51105fd8bc
treef46f7019524033c1f1119ed85ee040a3bcf6ea2d
parentece0e2c8b279b1bb2fb313dffa7928b98301ff3d
[mlir][MemRef] Add pattern that forwards constant strided metadata.

`memref.extract_strided_metadata` can forward constants independently of the
exsistence of other operations such as subview or reshape.

Differential Revision: https://reviews.llvm.org/D134603
mlir/lib/Dialect/MemRef/Transforms/SimplifyExtractStridedMetadata.cpp
mlir/test/Dialect/MemRef/simplify-extract-strided-metadata.mlir