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

    <tr>
        <th>Summary</th>
        <td>
            [LICMPass] Runtime issues caused by LICMpass optimization
        </td>
    </tr>

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

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

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

<pre>
    case:
[test-code.txt](https://github.com/llvm/llvm-project/files/12866820/test-code.txt)
Commands:clang -O2 test-code.c && ./a.out 10    VS   clang -O0 test-code.c && ./a.out 10
result:
![image](https://github.com/llvm/llvm-project/assets/43949371/92d5633e-77c5-4df2-9c8b-055a1238a10f)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyckkGPmz4QxT_NcLFA9oABHzhskj_SX2rVqpX2PsBAXBmIGNM2_fRVku6ueqrakw-e9978Ro9E_LQwN2APYE8J7fG8bs0zX3mhpFuHa9OTMORPoE-gn8AeIktM-3XgLH6PYE-A9TnGi9xmsAVsJx_Pe5f16wzYhvD15Ukv2_qF-wjYjj6wALYG67KsUQO2v9uie-Qd13mmZRD4r4XDEdxTH2iZVPoB1ZugV4AlYKkywJaydY_KaKWUev6slHpR6D8pHokbyx7ia94vbDRgD36mif-RmEQ43pCL3BUurwxg63CwZZ5zWlW9TYthxNT1dZdqa8lgXpPR4-slkqHJB5c7Srgxpau0yQ265NwwOTOMHRejrQo7UFfWI9mKtC2Y6mFMfIMac6ON0XWO2mVurNlwoXWF1HVaQ6F5Jh-y287Zuk2JF9m5KeuqKpNAHQe5FwRx4W_q_gmIt75szZ2z2yeBQgcvUd5coo_h3qx3_x_ffyQRsCf1aV-in_nhIqqnXXhQ3VXdhi4kotZL9LP_QdGvS7JvofnrYz-8Ads7wc8AAAD__xtV4I4">