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

    <tr>
        <th>Summary</th>
        <td>
            [warning] invalid (possibly stale) profile
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          lyf-g
      </td>
    </tr>
</table>

<pre>
    When I use BOLT for optimization, it shows the following warning. My profile data I just collected with perf.

BOLT-WARNING: debug info will be stripped from the binary. Use -update-debug-sections to keep it.
BOLT-WARNING: split function detected on input : main.cold/1. The support is limited in relocation mode.
BOLT-WARNING: Ignored 0 functions due to cold fragments.
BOLT-WARNING: 2989 (89.6% of all profiled) functions have invalid (possibly stale) profile. Use -report-stale to see the list.
BOLT-WARNING: 80175242 out of 80498905 samples in the binary (99.6%) belong to functions with invalid (possibly stale) profile.
[tracer] 5472 functions was moved (functions reordered) by BOLT
[tracer(time)] llvm-bolt took 47.449857 seconds to execute 



</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMlNGPozYQxv8a8zICOQ4E_MBDtqtUkdqrVF11zwYP4DvjQbZJmv71lUm2WVW30r4YCfzN9_M3Y1QIZnSILateWPWaqTVO5Ft7G_Ix60jf2m8TOjjDGhBe_vjtKwzkgZZoZvOPioYcE7-AiRAmugaIE8JA1tLVuBGuyjvjxgJ-v8HiaTAWQauo4Azf1xChJ2uxj6jhauIEC_qhYPyV8eN9TX75t-OfX85ffmX7I2js1hGMGwiuxlroEEL0ZllQw-Bp3uw745S_FfBXQMjXRauI-SbMA_YJOEAk-IG4gInFz43CYk2EYXWbADTGOyY5MG5ZI6RNszKu6MlqJk67Ar5OCGFdFvIRTABrZpMkxoFHS_2WFcyk8QPP8-jIowb-n28AvWKCTSYweDXO6GL4QC9kI4GJppHFgYkKaABl7Vvumgn5rvCkLgjGXZQ1OokWCsF09gYhKotp70P3yNFjOle-fU1EAXEL25rwUYYN39WVKAXQGhNMw0vZSF5BUPNiMaRknv1KEPJOntw7tOTG5PRk3mbkU8yPGapeolc9ela9QlXW4n0tFWCmC26Fnq89ktfo72l1t23g_19MNNHMyS6VtfYy5x3ZCJHoB5R1UZayqWoI2JPT26jh39ivEeH9ZN_XTLd7LfdSZdjuai5lc-CHOpta3TcDioZLMXBVaok7XQ4Su7qSWGtZZ6YVXJR8z-VO8Lqsi30n-VA1etfxDruas5LjrIwtEmFBfsxMCCu2TXkQVWZVhza83Xnf3o-xjoGVPLU0PGXRRLv9HR6XOZ36M03IVm_bKcYlsP2RiRMTp9HEae2KnmYmTsng8cgXT9-xj0ycNsjAxGnj_DcAAP__jQ1-uQ">