Issue |
131243
|
Summary |
[MLIR] [Vector] optimization VectorEmulateMaskedLoadStore crashes
|
Labels |
|
Assignees |
|
Reporter |
thaddywu
|
To reproduce: https://godbolt.org/z/hKGMY475h
Calling VectorEmulateMaskedLoadStore crashes on this snippet of code
` --test-vector-emulate-masked-load-store --allow-unregistered-dialect --mlir-print-ir-before=test-vector-emulate-masked-load-store --mlir-print-ir-after=test-vector-emulate-masked-load-store`
```
"builtin.module"() ({
"func.func"()<{
function_type = (memref<12x32xf32>, index, index, vector<32xi1>, vector<32xf32>) -> (),
sym_name = "fold_vector_maskedstore"
}>({
^bb0(%arg0: memref<12x32xf32>, %arg1: index, %arg2: index, %arg3: vector<32xi1>, %arg4: vector<32xf32>):
%0 = "memref.subview"(%arg0, %arg1, %arg2)<{
operandSegmentSizes = array<i32:1,2,0,0>,
static_offsets = array<i64:-9223372036854775808, -9223372036854775808>,
static_sizes = array<i64:1, 1>,
static_strides = array<i64:1, 1>
}> : (memref<12x32xf32>, index, index) -> memref<f32, strided<[], offset: ?>>
"vector.maskedstore"(%0, %arg3, %arg4) : (
memref<f32, strided<[], offset: ?>>,
vector<32xi1>,
vector<32xf32>
) -> ()
"func.return"() : () -> ()
}) : () -> ()
}) : () -> ()
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs