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

    <tr>
        <th>Summary</th>
        <td>
            Cherry-pick 7d7771f34d14e0108adf02a6fd0b33943afae3da to release/14.x
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            release:backport
      </td>
    </tr>

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

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

<pre>
    Attempting to use BOLT in instrumentation mode on `clang` on `release/14.x` results in `llvm-bolt` getting killed on a machine with 32GB of RAM:

https://github.com/ClangBuiltLinux/tc-build/issues/188

7d7771f34d14e0108adf02a6fd0b33943afae3da makes combining multiple BOLT instrumentation files  (`.fdata`) take up much less space, which makes `llvm-bolt` consume much less memory while running on `clang`.

Current `release/14.x`:

```
$ diskus clang.fdata
126.12 GB (126,116,876,288 bytes)
```

`release/14.x` + 7d7771f34d14e0108adf02a6fd0b33943afae3da:

```
$ diskus clang.fdata
120.33 MB (120,332,288 bytes)
```

I am not sure if this is an acceptable backport request but I figured it was worth discussing :)

cc @llvm/issue-subscribers-bolt 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylVNtu2zAM_Rr7hYhhS74--CFJ0aFAiwHDfkCW5FiLfJkuy_L3o5xkS7tiKDBAlk1KIs85pNzN4txunZPj4tR0ADeDtxJ2n5-_gppwWGf8KCfHnJonGGchAd9RmXLNpgO-r6aRWjIrI_KY5cnP4DfSeu1sCIOm1j_GTTdrF5YO0q3ZjkprKUIEBiPjg5oknJQbgJJPO5h7-LJ9ieg2Sh-i9DoPzi02-MgjjgNu9l3C5xGNfUC080q7ZzX5n-hxfNOhLfBTWeulDfDq-j5eJaqqynqaiyyXaZbWTPQpYWUv0o7SJqesZ5KKgO8oLWCmTk0B-4jk1KJ_a_VaqF5p3A0RqZFv0gvmGH5EpAGHccAveJ4PgJss2IVxFG4Pp0Gh75LorWR8nizGvzs2ynE253AIQRg_rahe1ya5Z7r3xiC-d4v1RuTguYyLSXIQyh498g-Rr3zWtYyUSUYAy4Vc0UAeWRbmugozqWvozi4o37wf--b8u4EisoOPlud_CKQJpfByJYA12lNKPg79CdgI0-zAeiNB9eAGhU1vgWFXcy4XxzosUMf4cZmNw2vxHRvRQecdPGGfHPCYAOXgxCyccMcQoHJvbajn2unNfT7OIcrX3rh19cb6znKjOmns2i8Qi5aKhjYsdspp2e4Hacx5syh-_LCi4VfwuiaxN7r9x_27YlrbdjHzN8nd_cUrCkLzeGhFRklf1LmUPGV1QfOqrDvWVF3TlCUr61izTmrbRsUuIuQGgW5vCqIzKh5i1ZKUkLRISdakdUaToqrzrOKiYLzkWSlQJTkypZMAKJnNITbt5Ur5gw0SKuvsn0WGgh8mKde8GJ95N8ymnZgb2MTDI-OVS7sS-QW9fJXj">