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

    <tr>
        <th>Summary</th>
        <td>
            llvm-reduce does not preserve uselistorder with ThinLTO
        </td>
    </tr>

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

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

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

<pre>
    ThinLTOBitcodeWriterPass is used for emitting ThinLTO objects in llvm-reduce, but it appears to not surface a way to preserve uselistorder like would be done for regular text IR or bitcode

https://github.com/llvm/llvm-project/blob/8099d6c20beeb9465eb036dcfc467a15c0ec516e/llvm/tools/llvm-reduce/ReducerWorkItem.cpp#L728
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk9r3DAQxT-NfBmyyJKttQ8-JA2GQKAlBHLWn7GtRrbMSE6ab1_s7JIWeulFEoP05qd5T6fkxwWxY_UdEyLSTD4xIVh9X-gtT5E6TQmXuTDRfXTPk18en7_f-WyjwxfyGemHTgl8gi2hgyES4Oxz9ssIl9sQzU-0OYFfIIS3-YbQbRaZ-AZmy-Az6HVFTQlyhCVmSBsN2iJoeNcfe3ElTEhvuPcIPuVIDgmCf0V4j1twYBBcXPBoTzhuQRNk_JXh4QkigfnkZfye8dvPdcp5TUzeMtEz0Y8-T5s52Tgz0e-Ml-1mpbizM9GbEA0TfcPb1ikruEE0baVqNFwqZwdbqbMua8vR1qXCL50cY0hXvevX-6fjQC-RXh8yzie7rkzIx7NoCtdJ18pWF9iVqmlKeZZ1WUwdGottdZaDbZpWGn3W6ASvBiFNjc2gCt8JLiRXkpc1F7I8WTcMA69VibVRpZWs4jhrH047yynSWPiUNuyUVKIsgjYY0iUJf9EecaDuqJltTKziuw3pSyf7HLD74xG4iOlw89_mvfs8XQNSbBS6_zbkQN8He9D_DgAA__8Hle3o">