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

    <tr>
        <th>Summary</th>
        <td>
            hexagon compiler runs "forever" on matrix-spec-types at O2
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:Hexagon
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            aankit-ca
      </td>
    </tr>

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

<pre>
    As of [20.1.4](https://github.com/quic/toolchain_for_hexagon/releases/tag/v20.1.4) clang would build this test case within ~20 minutes or so on my Xeon Gold 6136 CPU.

Now, it seems to run for hours - I've let it go for 7 hours and it has not finished.  I have seen similar behavior with `llc -O2 matrix-types-spec.ll`.

[matrix-types-spec.ll.txt](https://github.com/user-attachments/files/21392092/matrix-types-spec.ll.txt)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEkr1u3DAQhJ-GahYSqNXPWYWKsw0lbuI0AdIZK2olMqbIC0md7SbPHuh8QZr8VAK0w-HOx6EYzeKYe9HcCkQi92xSrkggiuY-oy1pH3pyU_BrNVE2-umtP0bwM4jmFmVRFrVo7gXe6JROUVRHgYPAYTFJb2Oh_Cpw-L4ZJXBI3lulybin2Ycnza-0eCdwCGyZIsddQovA4Xz1xQ6UJbfAi9_sBONm7ARJmwiJYwJFkeHFJG0c_EAJq3Fb4gg-QPTgHaxv8JW9gw_eTtCWVQt3n78UQh6FPH7yLwLvwCSIzGuE5CFsDmYfQPstRMjhQeDhzGA57bLFX4aH65jctP_VFMH5BLNxJmqeCoAH0HTm3dZBNKuxFGBkTWfjw2VdEK20VkH-iLBSCuY1T28njnk8sSqsFa28Lima2z8JivSa_gt9ixxySomUXtmlne5s7IUyllWHskOBw1_tscumvpq6qqOM-_LQVHjTdU2d6b5pD8TqwCVSo-pSVjgTyboab5Tsxq7OTI8SG3nAqmybrqwL2bSHlhDHCXmuOyVqySsZW1h7XgsflszEuHFfNhJbzCyNbOO1kiOpZ3aTqI4ffzXmUs3Q74fzcVuiqKU1McXfdskky_21YqD8ejKWw_7CEQTi7AOfOQjES03eGezp30EAJXjEbAu2_wfg_bLrJz8F_41VEjhcguyQr1nOPf4MAAD__3BOGVM">