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

    <tr>
        <th>Summary</th>
        <td>
            Inlining fails when there is no default branch
        </td>
    </tr>

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

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

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

<pre>
    From https://github.com/llvm/llvm-project/pull/76669#issuecomment-1873266792.

If a version with a default branch can be inlined, it should also get inlined without a default branch. Generally, a switch without a default branch generates fewer instructions.

I haven't created an example yet. I'm using this issue to track this regression.

cc @dtcxzyw
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUks1unTAQRp_GbEZBMPwYFizSRlRRV30EYwbs1thX9hBy-_QVRFGVVl10Y0v26Gjmm6NSsqsnGkTzSTRPmdrZhDg8WeW_fc2mMN-HMYYNDPMtiepR4ChwXC2bfcp12ASOzr28Xw-3GL6TZoHjbXdO4Cjbtu0FVjalnXTYNvL8UHaywraVPeaieBLF49v5vICCF4rJBg-HZQMKZlrU7himqLw2oJWHicB6Zz3NAj-DZUgm7G4G5VKAlfj990KEnf-i5PCFPEXl3P0kKEiHZW3-WQ_rVc6UYKGDIlifOO6abfDp4wRg1At5gZJBR1JMMygP9Kq2myO4E-fwLFBusCfrV2BjE1zRAAfgqPSPt7dIa6R0BvGBrzWIuphZv_68H9k8VHNf9SqjoZRFjXVTIWZmaLpOka6nBee-a9XcFVLW06KrRpaynKrMDlhgXZRFVZTY1ZhTuUxL15ddW9VV2TeiLmhT1uXnUvMQ1-xqcpCtlJg5NZFLlzGIno63CQTiKVAcLhGmfU2iLpxNnH5T2LKj4fnczzn-oqxLcBjywIYigU3gwx_pZ3t0w3_rd7WULgGlxF8BAAD__zro8-M">