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

    <tr>
        <th>Summary</th>
        <td>
            [InstCombine] very different results with nearly identical functions with a `select` and `icmp eq`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            llvm:instcombine
      </td>
    </tr>

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

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

<pre>
    [Two nearly identical functions](https://alive2.llvm.org/ce/z/wKREut)

`InstCombine` optimizes one of them very well. The other one not so much. Unfortunately I don't have the terminology to describe what's going on better than pointing to that link. Maybe someone else could help me out. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UsuOnDAQ_Bq4tIIYM8By4DDJZKXVKpdo8wHGNOCsH6zdntHs16dhR3lcYmFjV7tLVd0e_Hjrs_rzy9WDQxnMDfSIjrSSBqbkFGnvYlafM_GwEK0xq06ZeORPGn1BURhzsYUPMyMKeXnneX3-_jVRJrqsPGfl6b425ZOL9MXbQTvkE_iVtNXvGME7BD8BLWjhguEGVzSmgJeFYQbDfsF5gujBJrUU8MNNPlBykpAlP8HoXSZagkVecOMBwmC188bPNyAPI0YV9IBwXSQrayPMXruZiWFA4sucJB2sDNKGcwoDBEa71wK-yRunRm9xE4ImIiifzAgLmhUsq0xUQI79oWnqI49Dm499NXZVJ3PSZHCr8d_26_OH0VFPEwYuOASMyVCEq6blP634iEvgAkY0qGirpHTjBmhlV8A33uUpmP7ffs2cl4ZCecuHrWv336c1-J8bj3jUMSaMvKkfRFvnS38UdVt3cuqaqZtaOeDYdYMUVTc0qkV5zA1jJm7mMiF20uqk2aa62xSCnea6F6UQh_JQiko0dVvUrRKVmmQj1YQ4tNmxRCu1-f2a8tDv2oY0Rw4aHSn-CcoY9exwL-rGLxMtPvRWv-KAbtJoxnz30u9GfgFeQPeZ">