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

    <tr>
        <th>Summary</th>
        <td>
            [DAG] Add similar behaviour to InstCombinerImpl::freezeOtherUses
        </td>
    </tr>

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

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

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

<pre>
    We can end up in situations where some nodes are using a frozen node and others are using the unfrozen node - in most cases we want to ensure that only the frozen node is used.

This should also get rid of the PeekThroughFreeze hack in DAGCombiner::visitSUB
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMkcFu2zwQhJ-GuixsSJQZhwcelN9QEPyHFnWCnilxJbKhSINL2kievpDSoj7xMDPL3fk0kZsDomLiiYlTpUu2Makf_5_dEkM1RPOhfiKMOgAGA-UCLgC5XHR2MRDcLCYEigtCiAYJdEIo5MIMGqYUPzFsAuhgIGaL6d6SLUIJ97bdOn-JlGHUhAQ3hJsOGXIEDFQSQrY6Qwz-Y0vfZx1BITR7Vnes7l6tIyAbizegPUWYMUNyBuK0Jb8jvr_aFMts-4T4iWD1-L5-f-qe_4vL4AIm1nas7a6OXD6_PVVGtUa2UleomqNoa_kgmkNllZywlWJ84I-TbAfRoOYCtcFp4MdWmKFyitdc1EfeNE0jmsNeGsGnWuPxsR4HqSU71Lho5_feX5d9THPliAqq5iCPUlZeD-hpg8T5amFtd0aP40rh1D0zzld6Sa3abigzsUPtHWX6NzC77DfOq1-coDMGyC3O6wQDWn11saS16JdA-W8BL8vFf5UwbSV9WxG-EVJVklc25wutMu8Z72eXbRn2Y1wY77clv57dJcVfOGbG--0oYrz_c9dV8d8BAAD__4oh13M">