[mlir][Vector] Add folding for vector.mask with all-true masks
authorDiego Caballero <diegocaballero@google.com>
Thu, 18 May 2023 17:35:42 +0000 (17:35 +0000)
committerDiego Caballero <diegocaballero@google.com>
Thu, 18 May 2023 19:07:07 +0000 (19:07 +0000)
commit0c71a6e7c8e9a22bc44f25a90e8bdd995b8d9261
tree7a7a90c629cf61113e914d50449573d7faa1415a
parent3ac8b647c7dc6e63e6cb89ab7b669062f8958854
[mlir][Vector] Add folding for vector.mask with all-true masks

This patch removes `vector.mask` operations with all-true masks (i.e.,
all lanes enabled).

Reviewed By: hanchung

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