[Mlir-commits] [mlir] [mlir][Vector] Fix out-of-bounds crash unrolling create_mask/constant_mask with rank-mismatched native shape (PR #217514)

Hamza Qureshi llvmlistbot at llvm.org
Tue Aug 25 02:03:05 PDT 2026


hamzaqureshi5 wrote:

Here is a case:

mlir
func.func @f() -> vector<16x16xi1> {
  %0 = vector.constant_mask [8, 8] : vector<16x16xi1>
  return %0 : vector<16x16xi1>
}

$ mlir-opt -test-vector-unrolling-patterns a.mlir
error: 'vector.constant_mask' op expected all mask dim sizes to be zeros, as a result of conjunction with zero mask dim
note: see current operation: %4 = "vector.constant_mask"() <{mask_dim_sizes = array<i64: 8, 0>}> : () -> vector<8x8xi1>
$ echo $?
1

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


More information about the Mlir-commits mailing list