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

    <tr>
        <th>Summary</th>
        <td>
            Indirect call of phi/select not converted into direct calls
        </td>
    </tr>

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

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

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

<pre>
    When calling a phi/select of function pointers, we do not attempt to convert this into a branch over direct calls: https://llvm.godbolt.org/z/6s8PxKcj6

This precludes further optimizations, such as inlining.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxVkEFP5SAUhX8N3ZBpgL729S1YOGNMJm5mYeKa0tuCUmjgVh1_vbf1JWoC9MIt55yPIY3_9aODyK0JwceZG746z9RdgQAWeZr4tEWLPkW-Jh8RcmHqD38FPiYeE3KDCMuKHBO3Kb5AptL5wunfRGpDNtE6nqjBR593zd2qsOaGO8R1L8iORggvSz2ncUgB65RnOnqn2ZX-39u9feqYuGXi5nN92B1WUgvbCIUiZnRkkFb0i383e9wjZtnI2-xhCI7w6mrUzXhpLqZCjwH03_gt1E77g37nu0LB-En0naHactA_IWaPbhtqm5Yr0fXza83piS7S1peyAaW7a1vZicppUJez6E7QN1acwEgl267pxbm7wGBHihrMAKFo1v5mSkV45YcE1ay9rbxWQilxUr3opWzaWqrmPEkzTZOR3dBIdhKwGB_q44HpYausj0jDNhdqBl-wfDVNKX6OAIcd6ZsNXco6-mdvq8NYH8E_AIZBvto">