<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/78393>78393</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[mlir] --convert-vector-to-arm-sme hangs over 10 minutes.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
anonymousMCS
</td>
</tr>
</table>
<pre>
git version: 286a366d057112a112507b9e34c68d35b3b820f7
system: ```Ubuntu 20.04.6 LTS (Focal Fossa)```
reproduced with: ```timeout 600 mlir-opt --convert-vector-to-arm-sme a.mlir```
a.mlir:
```
func.func private @func1() {
%c299175162_i32 = arith.constant 299175162 : i32
%cst = arith.constant 1.41208461E+9 : f32
%c0 = arith.constant 0 : index
%c3 = arith.constant 3 : index
%alloc_17 = memref.alloc(%c3, %c3) : memref<?x?xi32>
%alloc_22 = memref.alloc() : memref<8x8xi64>
%101 = tensor.empty() : tensor<8x8xi64>
%mapped_45 = linalg.map ins(%alloc_22, %alloc_22, %alloc_22 : memref<8x8xi64>, memref<8x8xi64>, memref<8x8xi64>) outs(%101 : tensor<8x8xi64>)
(%in: i64, %in_62: i64, %in_63: i64) {
%151 = math.round %cst : f32
scf.index_switch %c0
case 1 {
%209 = memref.atomic_rmw ori %c299175162_i32, %alloc_17[%c0, %c0] : (i32, memref<?x?xi32>) -> i32
scf.yield
}
case 2 {
scf.yield
}
default {
}
%c1_i64_78 = arith.constant 1 : i64
linalg.yield %c1_i64_78 : i64
}
return
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVU-TuygQ_TTkQmlBo6gHD7-ZTE67p9_uOYVKErYEUoCZmW-_BTqZ_HG2aqsSE9v3XvfDphHeq6ORskXlCyq3GzGFk3WtMNZ8ajv5P19_bzo7fLZHFfBFOq-sQewXhpoLxvlAyopSEJRCSaqukazoeT2wsmNdDeRQIbJF5Nd89Z8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