[Mlir-commits] [mlir] [mlir][vector] Fix fold result for empty vector.mask with no results (PR #180345)

Andrzej WarzyƄski llvmlistbot at llvm.org
Wed Feb 11 08:59:10 PST 2026


================
@@ -772,3 +772,14 @@ func.func @arith_truncf(%arg0: f64) -> f16 {
 
   return %truncd1 : f16
 }
+
+// -----
+
+// Ensure that vector.mask with an empty mask does not cause issues.
+
+// CHECK-LABEL: empty_vector_mask
+func.func @empty_vector_mask(%mask : vector<8xi1>) {
+  // CHECK: vector.mask
+  vector.mask %mask { vector.yield } : vector<8xi1>
+  return
+}
----------------
banach-space wrote:

Move the test to test/Vector/canonicalize.mlir

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


More information about the Mlir-commits mailing list