[Mlir-commits] [mlir] [mlir][vector] Add folders for full constant transfer masks (PR #71676)
Quinn Dawkins
llvmlistbot at llvm.org
Fri Nov 10 17:56:57 PST 2023
================
@@ -5601,6 +5622,22 @@ LogicalResult ConstantMaskOp::verify() {
return success();
}
+bool ConstantMaskOp::isFullMask() {
+ auto resultType = getVectorType();
----------------
qedawkins wrote:
A canonicalization would be nice because we could turn an all-false transfer_read into a `vector.splat`, and for transfer_write just drop the op altogether. (Just catching up to this work, maybe some of it already exists)
https://github.com/llvm/llvm-project/pull/71676
More information about the Mlir-commits
mailing list