[mlir][linalg] Remove generic PadTensorOp vectorization pattern
authorMatthias Springer <springerm@google.com>
Mon, 14 Jun 2021 01:40:50 +0000 (10:40 +0900)
committerMatthias Springer <springerm@google.com>
Mon, 14 Jun 2021 01:53:50 +0000 (10:53 +0900)
commitfdb21f0c5edd17b9aeb6f5135d0980b9e4c74bf2
tree6986ad245bd6fae3d8591a91aeaf5a3be3b2b067
parent4fa8677860436b7cf75c5d8bb80a0996c3a83327
[mlir][linalg] Remove generic PadTensorOp vectorization pattern

The generic vectorization pattern handles only those cases, where
low and high padding is zero. This is already handled by a
canonicalization pattern.

Also add a new canonicalization test case to ensure that tensor cast ops
are properly inserted.

A more general vectorization pattern will be added in a subsequent commit.

Differential Revision: https://reviews.llvm.org/D103590
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir
mlir/test/Dialect/Linalg/vectorization.mlir