[mlir][vector] Refactor TransferReadToVectorLoadLowering
authorMatthias Springer <springerm@google.com>
Sat, 17 Jul 2021 04:52:20 +0000 (13:52 +0900)
committerMatthias Springer <springerm@google.com>
Sat, 17 Jul 2021 04:53:09 +0000 (13:53 +0900)
commit4a3defa6298ae84f88bf0ad76b50a6264ab2f337
tree4a80cc632359e55861ed59f81482af3084139dad
parentf4ec30d808a42812c754c45694aca982a06d6cfa
[mlir][vector] Refactor TransferReadToVectorLoadLowering

* TransferReadToVectorLoadLowering no longer generates memref.load ops.
* Add new pattern VectorLoadToMemrefLoadLowering that lowers scalar vector.loads to memref.loads.
* Add vector::BroadcastOp canonicalization pattern that folds broadcast chains.

Differential Revision: https://reviews.llvm.org/D106117
mlir/lib/Dialect/Vector/VectorOps.cpp
mlir/lib/Dialect/Vector/VectorTransforms.cpp
mlir/test/Dialect/Vector/canonicalize.mlir
mlir/test/Dialect/Vector/vector-transfer-lowering.mlir