<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/74316>74316</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[BOLT] If the -enable-bat option is enabled, the effect of secondary optimization is weakened
</td>
</tr>
<tr>
<th>Labels</th>
<td>
BOLT
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
zct
</td>
</tr>
</table>
<pre>
In our environment, it is not possible to deploy a single instance for perf sampling, so we turn on the -enable-bat option for continuous optimization.
However, we find that the optimization effect of BoltOptBinary2 is less than that of BoltOptBinary1 without any changes to the origin code. Through analysis, we found that compared with BoltOptBinary1, BoltOptBinary2's itlb-miss-rate and L1-icache-load-misses-rate have increased
**OriginBinary** --- [perf record] --- [perf.data] --- [bolt transform] --**enable-bat**--> **BoltOptBinary1**
**BoltOptBinary1** —— [perf record] --- [perf.data] --- OriginBinary --- [bolt transform]---- > **BoltOptBinary2**
We are curious, is this as expected? Does enable-bat make some optimizations less effective in our scenario?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVM2OnDgQfhpzKdECQ_dMHzikt9PaSJHmEmnPxi7AG-NCLjO9nadf2czs9EySw0oITP35--pPMdvRI3ZifxL7c6HWOFHofuhY9GRunajOovr0xQOtAdA_20B-Rh-F_ANsBMvgKcJCzLZ3CJHA4OLoBgrY-tEhWM9ReY0wUIAFwwCs5sVZP6YYTHBFiGvwQB7ihFCiV73DslcRaImWfPbU5KP1K62cpbP9oZJutwH8k674jCFFvCIM1huIk4o54L054DCgjkADnMjFpyWerFfhJhMTh8zJzW--H21quNo40RpB-RvoSfkROTHOlwQ7Wg-aDO7g2xRoHSdQXrkbW36FResrLk3zogKaHPLDNcn6PTghHxhsdH05W-YyqIigvAH4WpdWKz1h6UiZrMUX_aSeU-51QMVotiy9vGV6njLg7YJNAmVZgtifco0CagpG7M_30p1RUd3JenIRYlCeBwrzpthivdVw-y9L0XyG7fyRbQb0E75fWYH4LMVjJY7tf4f_Afie8W8ZlFnxa6zyZ6x_IaiAoNdgac11tqmFLINiwH8W1BGNaC5wJmS46-xZfUdgmt-350sPbk1qcwHz4LFGr4Il0VwK0zXm2BxVgV39UNWHY3No62LqDs1x30g8Kj0cK2zaoTdYt7puHx8rY8xQ2E5Wsqll1dayrdpq1zbNfo_9oTHDo26GVrQVzsq6nXPP847CWFjmFbuHtqkPhVM9Os57QsrT09dvQsq0MUKXzMt-HVm0lbMc-S1AtNHl3ZId9mf4MvxuyO1rfkxKYzJ6m1VGTd6kur0bZstwRfUdPZpiDa6bYlxYNJ-EvAh5GW2c1n6naRbykhC9fMol0N-oo5CXzI-FvGSK_wYAAP__L5Slvg">