<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/71742>71742</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llc very slow to compile IR sample
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
meheff
</td>
</tr>
</table>
<pre>
llc is very slow to compile (45m) the attached IR after optimizations. llc 17.0.4 finishes in 3s.
At main c2ad9f8b607931430e86da7420493599c48e62a0.
Repro:
```
$ llc -version
LLVM (http://llvm.org/):
LLVM version 18.0.0git
Optimized build.
Default target:
Host CPU: skylake-avx512
Registered Targets:
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
$ opt bad2.ll -S -O2 > opt.bad2.ll
$ llc --march=x86-64 opt.bad2.ll
....takes forever...
```
[bad2.ll.gz](https://github.com/llvm/llvm-project/files/13301751/bad2.ll.gz)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU8uOpDYU_RqzucIytnl4waImNaWMNK1pVSZRtgZfwGmDS9jUdM_XR1B0dyXpTSRk6z7O8X1wdAi2nxBrkn8i-THRSxz8XI84YNcljTcvtXMt2ABXnF8gOP8DoofWjxfrEAivZD4SriAOCDpG3Q5o4MsZdBdxBn-JdrQ_dbR-ChRWqqykjEro7GTDgAHsBCJQwo6EHW7nIcKo7QQt10Z1VVOwUolMCoZVYXQpOZNK5Eq1ssKCa_YP8Bkvsydit0jB9u9mcrnVkF5xDtZPN-_Xr388rJ0MMV5WJD8RfnLuOlI_95ul3ggBtuwdD1lFGWW9jXv0261fNNAs1hn6CjpipxcXIeq5x0jEAV4jv_oQ4ZfH31dfeHpx-glTfX3OM37fFZyxtyHijAa-bxzhriSA56pYrxQETxsb4c-qWAkfcYp2GdPH2YOeDOjGX3FHPVdFWkhIoZD3kM8Phfy-JR8ejoV8n5u_RGi04dQ5SH-D9BsHIj6vbrq7_zXjdNRzOxBx3F_6TyallEb9hAE6P-MVZ0rpx2u7nfmnHU77nyQ_7hsLbyvrbRyWhrZ-3Pe3X-ll9n9hGwk_ddZhIPyUCcGyMs8IP91xcnV7KTG1MEoonWCdFUrJSipVJkPNJGNVXulcVWWZN3lrDArZGdU1XOWmS2zNGRdZxioumMpLipUs2tYoJdGUHJFIhqO2jr7-X4kNYcG6zErJE6cbdGHTIucT_oAtSDhfpTnXWzPN0gcimbMhhneWaKPDTaof6vTLGYIeLw6TZXb1_x7bVsY6t63MvwMAAP__tT48jA">