[mlir][Vector] NFC - Use matchAndRewrite in ContractionOp lowering patterns
authorNicolas Vasilache <ntv@google.com>
Thu, 6 Aug 2020 13:01:57 +0000 (09:01 -0400)
committerNicolas Vasilache <ntv@google.com>
Thu, 6 Aug 2020 13:02:25 +0000 (09:02 -0400)
commit1353cbc2570b2fe4b418a9acea9778eca5625fb7
tree2c1fb4ac113302bf1217d333b08cb73d0f0680f6
parent839d974ee0e45f09b9665b4eed734ca1ba174d25
[mlir][Vector] NFC - Use matchAndRewrite in ContractionOp lowering patterns

Replace the use of separate match and rewrite which unnecessarily duplicates logic.

Differential Revision: https://reviews.llvm.org/D85421
mlir/include/mlir/Dialect/Vector/VectorTransforms.h
mlir/lib/Dialect/Vector/VectorTransforms.cpp