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

    <tr>
        <th>Summary</th>
        <td>
            MergeFunction can't merge functions because of jump tables
        </td>
    </tr>

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

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

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

<pre>
    i observed MergeFunc missing merging opportunities due to switch jump tables.

workarounds i can think of:
* -fno-jump-tables
* move mergefunc before switch jump tables transformation
* move mergefunc after constmerge, which would merge switch jump tables

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kcGOqzwMhZ8mbKxWIZDSLrKY_x-xuw8RwIHMhKSKnaJ5-ytodecu5m6wZJvP5-RYIj9HRCP0f0K_V7bwkrL5sitXQ5q-jIc0EOYHTvAL84x9iSOsnsjHGVbM817T_Z4yl-jZI8FUEDgBbZ7HBT7Kege2Q0A6C_ku5Nvzu6X8aXMqcSLwMNoIvPj4CcmJ5rUi1BucXEynnXF6Mr4na3rgoQDdrmlAlzL-cBU420gu5dWyT_GfAOsYM4wpEh9Nof6HbfHjAlsqYXpu_sB_AqvJNNOtudkKTd3Vumv0VetqMXaSt7a9XJu2mRTW9or6qmQjEae2Hm1TeaOkaqWutazrrtHn1o3uotqL65q204MWrcTV-nAO4bGeU54rT1TQ3JSSdRXsgIGO_JSKuMExFErtcWaz_3MaykyilcET0zeFPQc0f1LdH2fPQaiOX2bdq00w4GgLIST3t_Wq5GAW5jvtmaleqH72vJThPKZVqH4_9Sqne04fOLJQ_SGQhOoPA78DAAD__9Dt1iQ">