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

    <tr>
        <th>Summary</th>
        <td>
            [Clang] [SimplifyCFGPass] There is an infinite loop after the SimplifyCFGPass
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    demo:
https://godbolt.org/z/a3dEEc9jE

If poolNum is zero, there is an infinite loop, should we fix it?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kUFv3CAQhX8NvqCs8NiO4cAh2V2qXqpK7am3wR5sImwsg9Mmv75iN1KlSL2AePCeeN9gSn5aiTTrnll3qfDIc9z1r5nWGdephrqpbBzf9EhLZM0TExcmnuact1ROYBiYKY42hnyK-8TAvDMw2IzX66Bervfn9_Wr41uM4duxcJ_4O-2RwZnnmXYqAq7cr86vPhMPMW7lMs3xCCP_Tdz5P9xn1ph7VjXqZlSNwop03UP3qKRqoZq1VLKV1gorWlQSoHZWkVOEJJUbXFd5DQJaoUQvZKsEnLBGiWpoAHtnxShZK2hBH04hvC6lU-VTOkjXon_s-yqgpZBuuACGgOvEAAq5XRfDgz2mxFoRfMrpX0T2OdwYn2-O7sJZ9_zDL1vw7u1svnzHlIr68380OLpMe6HFP9mqYw_600B8ng97GuLCwJQ_fGwP2x5faMgMzK1TYmA-ar1q-BsAAP__rkiksA">