<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56428>56428</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Execution engine crash on complex code using "sparse" encoding
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir:sparse,
mlir
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
aartbik
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
aartbik
</td>
</tr>
</table>
<pre>
The execution engine crashes on the LLVM IR generated by MLIR lowering on IR that uses a "sparse" encoding of a complex32 buffer. I could narrow it down to the following reproducer:
module attributes {llvm.data_layout = ""} {
memref.global "private" constant @"__constant_32xcomplex<f32>_0" : memref<32xcomplex<f32>> =
sparse<[[1], [28], [31]],
[(1.000000e+00,0.000000e+00), (2.000000e+00,0.000000e+00), (3.000000e+00,0.000000e+00)]
> {alignment = 128 : i64}
llvm.func @entry() {
%0 = memref.get_global @"__constant_32xcomplex<f32>_0" : memref<32xcomplex<f32>>
llvm.return
}
}
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytU0uPmzAQ_jVwsYqIDYEcOGzCVlpp91JVvUbGDODW4MiP3c2_79ghzbaK1B5qWeB5f-PP0-n-3HydgMA7CO-kXggso1yACMPtBJagxqH9-fnbC3n6QkZYwHAHPenO5OUZNUq_gZHLGDxRdBN3xFuM5CSh1J64sYAHzCt0H_0GNAk9nxS8M0o6PwxgMvKEOq96snBj9BuRjvT6DYvrWH_QCguFcAMno3svwCTsIcnbJF-_M2oVEO6ckZ13iCCp9kq9zlnPHT8qftbekYS1AVfYVRs8PqYgZIbZwJCNSndcBceTka_Yb-hA6MU6vmCOIkf5eLwqjoy-rw0l7DAwmrDHY3DBag9rSjTc8cIdEF2r41ovjB2Sco97k5RtQg8Ej7S-nVnUR_FD7LpCJK03WR4XQt_nCOaQ_6HYxVy0pv_qyP7uWLZ34IQeqz1XclxmWC4UbGgdL0duC-Thdw4iZ4NfRLhoDDBnLI7Zb2xd8tIyj7munIE7Xnn7nwR9KBmRGXDeLFftDX3Vpn3D-h3b8dRJp6B5vDtUYVDWMvjvAaclvOu7w5J6o5rJuZMNj51-xj1KN_kuwwwoBEDr7xOOxXcQDkVprQeLh3Jb0DqdmkHw3ZYORU4rJkQtNjnrGK1EsesHXkORKt6Bsk18OXRWMszWLzQX-i9qlMo2lQ3NKc2rvNrsNttNmQ09K0qgfb4VVDC2DcTNXKos3pg2Y2qaCLLzo0WjktbZm5Fbi48DYAXAuXGd_LEW495N2jSrMo3NNbGzn9UNYns">