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

    <tr>
        <th>Summary</th>
        <td>
            llvm-cov: Instantiation groups are printed in non-deterministic order
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    When `llvm-cov show` shows instantiation groups, it seems to print them in a non-deterministic order (presumably influenced by hash bucket order).

This is a hassle for Rust's `-Cinstrument-coverage` tests, since they have to jump through hoops to ignore instantiation names when comparing output snapshots.

Ideally the instantiations should at least be naïvely sorted by their function name. That would at least be deterministic in the common case where all instantiations have distinct names.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kk2PozgQhn-NuZSCwIYEDhyy3YrU11VLK-3NQAW719jIVU6Uf78ymQ91z8wFH7CrnvfVo4ns4hEH0f4l2tdCJzYhDv9qp9noWIxhfgz_GPQgjpVzt_UwhRuQCXdxrPaTwHpi7dlqtsHDEkPaSMgXsAyEuBJwgC1az8AGV7AeNPjgDzMyxtV6S2wnCHHGCEJ2W0RKqx7dA6y_uoR-whnGBxhNBsY0_Yf8vC1kX4rqVVTn5_fdWAJLoPNVcgjXEOHvRCzkiXKAw0tmjWlFzzkIRr1gDsJIvDOT9RNmzrzuhhn9I60bsIkhLQZMCNseyC4-RPyS3esVCe65rimsm47WLxASb4mBvN7IBKZPyG8zauceeePnWZTLTW4GzeBQE8OI4LV4UeJ8uaF7AIXIz2LYoI1wTX76QVHCu9EM919GfC7d-n3zFNY1eJg0YaaPCNq5rzx7H3N-5yd-Ri2LeVBzr3pd4FAfO1V1bd31hRlabK5qRtkcx65V9Yz16TqO_dR0lTzVfV3YQVZSVW2lKqX6pi-xVvLa1Ko5tccG-1k0Fa7aujJbV4a4FJYo4XCUbdUVTo_oaLdWSo932H8KKbPEcdhNHdNCoqmcJaafU9iyw-G7ykKd4e03_oKO-JQW59zSH3wtUnSDYd5IqLOQFyEvi2WTxnIKq5CXvObbcdhi-MCJhbzsrCTkZc_yfwAAAP__5r42Wg">