[Mlir-commits] [mlir] [mlir][Vector] Canonicalize empty `vector.mask` into `vector.select` (PR #140976)

Andrzej WarzyƄski llvmlistbot at llvm.org
Thu May 22 05:40:28 PDT 2025


================
@@ -6696,6 +6697,47 @@ LogicalResult MaskOp::fold(FoldAdaptor adaptor,
   return success();
 }
 
+// Canonialize empty `vector.mask` operations that can't be handled in
+// `VectorMask::fold`.
----------------
banach-space wrote:

[nit] Could you document _why_ this can't be handled by the folder?

https://github.com/llvm/llvm-project/pull/140976


More information about the Mlir-commits mailing list