[mlir][tensor] Fold rank-reducing extract_slice with inverse expand_shape
authorMatthias Springer <springerm@google.com>
Fri, 2 Dec 2022 09:40:03 +0000 (10:40 +0100)
committerMatthias Springer <springerm@google.com>
Fri, 2 Dec 2022 09:42:46 +0000 (10:42 +0100)
commita076f57a1a6b6d775aa4f11ac678d1c43ab33fb1
tree06ebf3c7878260e41d42a21ee5f74211339b4362
parentac9f88e8622629c43c8f0538d03ae93cd25b3f34
[mlir][tensor] Fold rank-reducing extract_slice with inverse expand_shape

Differential Revision: https://reviews.llvm.org/D139103
mlir/include/mlir/Dialect/Tensor/Transforms/Transforms.h
mlir/lib/Dialect/Tensor/Transforms/CMakeLists.txt
mlir/lib/Dialect/Tensor/Transforms/ReshapePatterns.cpp [new file with mode: 0644]
mlir/test/Dialect/Tensor/fold-reassociative-reshapes.mlir [new file with mode: 0644]
mlir/test/lib/Dialect/Tensor/TestTensorTransforms.cpp