Issue 172258
Summary [mlir] SEGV when converting arith op to llvm
Labels mlir
Assignees
Reporter YuanchengJiang
    ```mlir
#CSR = #sparse_tensor.encoding<{map = (d0, d1) -> (d0 : dense, d1 : compressed)}>

module {
  func.func @crash_target(%arg0: tensor<10x20xf16, #CSR>) {
    // The pass attempts to convert this arith op and potentially reconciles 
    // the function signature, crashing on the unhandled sparse tensor type.
    %0 = arith.constant 0.0 : f64
    return
 }
}
```

reproduce: `mlir-opt -pass-pipeline="builtin.module(func.func(convert-arith-to-llvm))" ./test.mlir`

```
Segmentation fault (core dumped)
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to