[mlir][Vector] Add InsertStridedSliceOp -> ShuffleOp for the rank-1 cases.
authorNicolas Vasilache <nicolas.vasilache@gmail.com>
Wed, 27 Oct 2021 07:48:39 +0000 (07:48 +0000)
committerNicolas Vasilache <nicolas.vasilache@gmail.com>
Wed, 27 Oct 2021 07:57:17 +0000 (07:57 +0000)
commit00ac874ff605573b1a9c7c5daa707f10a96ff26c
tree848f17239a37e2c5de7346e0f775e1054d0f6b18
parente42f5d4b488e78ebf5b756e1e76422c7458ba81c
[mlir][Vector] Add InsertStridedSliceOp -> ShuffleOp for the rank-1 cases.

This also fixes the vector.shuffle C++ builder which had an incorrect type assumption that triggers with this new rewrite.
The vector.shuffle semantics were correct though.

Differential revision: https://reviews.llvm.org/D112578
mlir/lib/Dialect/Vector/VectorInsertExtractStridedSliceRewritePatterns.cpp
mlir/lib/Dialect/Vector/VectorOps.cpp
mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir