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

    <tr>
        <th>Summary</th>
        <td>
            [DAG] SDPatternMatch - match integer min/max patterns as well as the existing ISD node
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            good first issue,
            llvm:SelectionDAG
      </td>
    </tr>

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

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

<pre>
    We already have matchers for ISD::SMAX/SMIN/UMAX/UMIN nodes, but it'd be useful if we could match icmp+select patterns as well, preferably with the same existing m_SMax/m_SMin/m_UMax/m_UMin helpers.

This would be similar to the the IR PatternMatch MaxMin_match helpers which match the min/max intrinsics and the cmp+select patterns.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUl1vozoQ_TXmZdQImxDIAw9pEVfRFdVVudHuW2XDALMydmSbJv33K6DdL-0DzMB8nTlzpPc0GMSCpY8sLSM5h9G64uXfhiZrImW79-ILgtQOZfcOo3xDmGRoR3Qeeuvg3JQsObHk1NSnr0xUTX1-ZqK6bF-X-vwMxnbomXgCNQegwETWgUKYPfazBurhhtDaWXdbZ6B2ujLx6FFjG-AqQ0BnPEgPN9R6aXR12KOTSr_DjcIIYUTwckLAO_lAZoDptanlnYlqcciszuXzz6UmAyPqKzq_Y3HJ4tP2_n8kD7cVikLwNJGWDoJdByzP-QX-2_DUK9Ra3msyrxvuj45wG6kdP3ZZiqZtvrwDmeDIeGo9SNOtwb_uuou6IumOyVFGWPBMHOL0mOeHaCx6xdPDPsuPCjPFZdb2eX6Ij4ec933OOx5RIWKxj4-c8yTe7w87nvIkSXLMMpFkiVJsH-MkSe-0fpt21g0ReT9jweNc8DzSUqH2qxyEGKztoCfnA6xJTAgmnpgQS-1y8xU2WVOe_lliaRm5Yok9qHnwbB9r8sH_nBQo6FVqS35aQlP-xubDpwBMwAHdL8T9KYLFLuz9uPe5KVedRbPTxRjC1S-qFBUT1UBhnNWutRMT1Qp8Mw9XZ79hG5io1uU8E9UHCW-F-B4AAP__BqgFBA">