<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/75898>75898</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            The code generator hangs.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          JavierASMR
      </td>
    </tr>
</table>

<pre>
    I have been experiencing this bug for three years.
The compiler hangs when compiling with -O2 but not -O1. It does so whether I generate for x86_64 or arm.
I attach the .bc file and the report. The latter includes towards its beginning:

LLVM ERROR: out of memory
Allocation failed
Stack dump:
1.      Running pass 'Function Pass Manager' on module 'bugpoint-test-program-baa9344.bc'.
2. Running pass 'Loop Pass Manager' on function '@FicheroConfig___KeyVals'
3. Running pass 'Induction Variable Users' on basic block '%49888'

I attach the report. The llc tool is still trying to cut down the problem, but at the pace it's going it will take it several years to complete. I have

[bugpoint-reduced-simplifycfg.zip](https://github.com/llvm/llvm-project/files/13711967/bugpoint-reduced-simplifycfg.zip)
[report_cut.txt](https://github.com/llvm/llvm-project/files/13711990/report_cut.txt)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyslF2PqzYQhn-NczMKAgMhXHCRc04jpd3VVjnt3kb-GMBdYyN72Gz66ysgu_04R6oqlQuQxp7nHWZejYjRdA6xYeUnVn7ZiIl6H5ofxavBcPj6eN5Ir2_NCXrxiiARHeDbiMGgU8Z1QL2JIKcOWh-A-oAINxQhJiz9wtLDLz2C8sNoLAbohesiXHt099gMuBrqYfvEQU4EzhNsn7IETgTaY4To5_vUY4ATdOgwCMJF622_u-wK8AFEGO5qJxBEQvVAPUIiFbTGIginl0DA0QdKYK7JCiIMYJyyk8YI5K8i6AiGIkjsjHPGdSw_rNz1_fDw_Ag_nM9PZ5YfwE8EvoUBBx9u64WDtV4JMt5BK4xFvYa_klAvoKdh_ABmCSzPeVqEYBQxAuPVcXJqyf95DjwKJzoMjFfgHQxeTxbnW3LqRm8cbQkjbcfguyCGrRSizosikYrx6t4Qnnwj8eD9-D18-y7NeMWK9GhUj8F_9q413eVy-Qlvz8LG-XAh59-ST05PK-JZBCOkRfg1Yoh3ASmiUSCtVy-LBi-Ler_ffxC_M8K_TcwqIO8tmAiRjLVA4bY40IOaZrtc3ZI0Bi8tDox_XiwlaI0KhWCI8SpC5-c8Q3BdMOJlPoGIrxiEXe27UP0wWiRMYHX_X8tk5aePKQTUk0K9jWYYrWlvqu2S383Iyi-M73uiMc5z50fGj52hfpKJ8gPjR2tf3z_zEH9DRYwfZ8tGxo9ZXmVZvasYP_6rEq8_qlpbdlETJfRG_0sNdcr48R_cd8WNbnJd57XYYJNVKa931a4uNn2TSZHJfSZRS56VqFG0rd5nuU7LgkupNqbhKc8zntXpLi_KItkVqizLMq3KFFW106xIcRDGJnNxiQ_dxsQ4YVOV-3q_sUKijcvW4tzhFZZDxvm8xEKz_JCcusiK1JpI8U8KGbLYrItJ4_tS8ff1lGymYJv_3LFFfW7ZUt0fAQAA___pO76e">