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

    <tr>
        <th>Summary</th>
        <td>
            llvm-reduce should have a uselistorder reduction
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            enhancement,
            llvm-reduce
      </td>
    </tr>

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

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

<pre>
    There should be a uselistorder reduction pass, which tries sorting the uselist for any value with an unsorted uselist. Most of the work is extracting code from the AsmWriter and LLParser into an interface usable from llvm-reduce.

Starter patch: [0001-llvm-reduce-Add-pass-to-reduce-uselistorders.patch](https://github.com/user-attachments/files/19646356/0001-llvm-reduce-Add-pass-to-reduce-uselistorders.patch)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyckkGPnD4MxT9NuFigYGAGDhxmdzWn_Ut_qZV6NsRM0gIZJWa2--2rsDvqXNpDT5as9178c0wxusvK3KvmSTUvGW1ifegpRF6XbPDmvf9qOTBE67fZwMBAsEWeXRQfDAcIbLZRnF_hSjEqfIY360YLEhxHiD6IWy8glu82mHwAWt_hRvPG8ObEAq2wrUnL5i4r4D8fBfy0e998-AEuAv-UQOMeOXrDMAW_7IJTXL4FJ5yiDby-_p8QArhVfEp3q3CYaExT0DB_Guf5tuQ7ABdKn5Q-fREKKeRKMlpVnUA1T1rrMn-Q5idj8gSbi7-3HlcSiw9386KwtSLXqKqTwrPC88WJ3YZi9IvC8xY55CRCo114lajwPLmZUy27Q32omoPC87--jl1m-sp0VUcZ9-WxrktdazxktjflUPOkB2qrrmsbPeDAh7IecGqPDeIxcz1qbHStW92hxkNBLY1UaqPLQdfMR1VrXsjNRRqs8OGSuRg37suqbstjNtPAc9xvCpFXS-vICVEhKnxWiA88qde8ZKHfe8N2iarWiSb-DhcnM_cPpvs5Wrr9-SCzLcz9X_af8j5Lfg3-O4-i8LyD7H_wwXLr8VcAAAD__-veEM0">