[mlir][vector] Add folder for ExtractStridedSliceOp
authorThomas Raoux <thomasraoux@google.com>
Fri, 23 Oct 2020 19:07:25 +0000 (12:07 -0700)
committerThomas Raoux <thomasraoux@google.com>
Fri, 23 Oct 2020 19:18:09 +0000 (12:18 -0700)
commitea6a60a9a6c18a2a512b066fd8a873ff0db49836
treec2d273c95f02bd6c0165baeea2f45d4cfb2dfc05
parentbfb04aeb85b85cb49c7e630de979ef4d8de6e79a
[mlir][vector] Add folder for ExtractStridedSliceOp

Add folder for the case where ExtractStridedSliceOp source comes from a chain
of InsertStridedSliceOp. Also add a folder for the trivial case where the
ExtractStridedSliceOp is a no-op.

Differential Revision: https://reviews.llvm.org/D89850
mlir/include/mlir/Dialect/Vector/VectorOps.td
mlir/lib/Dialect/Vector/VectorOps.cpp
mlir/test/Dialect/Vector/canonicalize.mlir