[mlir][tensor] Remove folding of tensor.extract_slice during tiling
authorThomas Raoux <thomasraoux@google.com>
Thu, 25 Aug 2022 15:27:40 +0000 (15:27 +0000)
committerThomas Raoux <thomasraoux@google.com>
Fri, 26 Aug 2022 14:30:39 +0000 (14:30 +0000)
commit2e34599bfd01e5b20e09bd6af590a52d6a63a64c
treeecf38338bf35ddd61c1256a783cf3148ade340b5
parente84784e4ae808fbe7f6680f3afb2786f46bbacb3
[mlir][tensor] Remove folding of tensor.extract_slice during tiling

Blindly folding tensor.extract_slice makes the bufferization
transformation harder. This kind of transformation should happen
separatley if needed rather than doing it within makeShape that is
called during tiling.
Also removed makeComposedExtractSliceOp as it is not tested outside of
this code.

Differential Revision: https://reviews.llvm.org/D132666
mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
mlir/lib/Dialect/Linalg/Utils/Utils.cpp
mlir/test/Dialect/Linalg/multisize-tiling-full.mlir
mlir/test/Dialect/Linalg/tile-fuse-and-distribute.mlir
mlir/test/Dialect/Linalg/tile-tensors.mlir
mlir/test/Dialect/Linalg/transform-op-fuse.mlir
mlir/test/Dialect/Linalg/transform-op-split.mlir