<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/73227>73227</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[BOLT] print-cache-metrics prints nan%
</td>
</tr>
<tr>
<th>Labels</th>
<td>
BOLT
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
aaupov
</td>
</tr>
</table>
<pre>
Command:
```
$ ~/workspace/test/build/bin/llvm-bolt ./bin/clang++ -o ./bin/clang++.bolt \
-data=perf.fdata --print-profile-stats --print-cache-metrics
```
Output:
```
BOLT-INFO: cache metrics after emitting functions:
There are 136051 functions; 12404 (9.12%) are in the hot section, 12455 (9.15%) have profile
There are 560754 basic blocks; 560754 (100.00%) are in the hot section
Hot code takes -nan% of binary (0 bytes out of 0, 0.00 huge pages)
Expected i-TLB cache hit ratio: 97.55%
TSP score: 98.16% (3566771 out of 3633667)
```
Shows `-nan% hot code`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U9FurDYQ_RrzMgKZMTbLAw_ZbFErRU2l5AcMngU3LEa2SZqXfnsFy26v7s290mqRZ47PmWPN0SHYfiKqmTwyeUr0Egfna62X2b0nrTOf9aO7XPRkmHhg_MT4A1N8_12PWMC_DJsP59_CrDti2EQKkWHTLnY069dODJtxfL-krRsjZPdaN-qpZ3hkeITUfd3ItjtMPl71AFKjo2biNJM_Z-f1AGk6ezvFdPbubEdKQ9Qx3Kud7gZKLxS97cKXJp6XOC_xZxYBjs9Pr-kffzbPTDzARgc7HehzJA90sTHaqYfzMnXRuincyQBeB_IE2hPkQnGZfws6Qo4FL4DhocpyZCgZVhvWThAHgsFFCLTBGT6uaCl3tNzRg34n2K3_qCkVL2UBrQ62g3Z03dsmu5cZHnLOM85_rbyz_u4idM4QRP1GAdJJTwwluDO0dtL-c6Xj0H5GCuCWuDb4OvUqAMPSE8y6p8CwujH-9s9MXSQDNn19Ou5vO9gIXkfr1ueuykxuTm_OXv6C0DlPW_OQ5WodgeFBSKXKMr8JCyWEUuVd6_u93f5fBvcRgCl-szLsDpniiamFqUSlE6rzkvNSFLyskqFuqTVGCokVtYofuBIiN6IkRYajMSqxNXIUeY4i57yUVVZoY3hLRWU05aLNWcHpou2YraHInO8TG8JCdSkQy2TULY1hiyTiunoMcQ2nr68ZWvrACj7aEMP_BNHGcYvxdkGe4Ivdv9YCXL0mix_rIcZ521VsGDa9jcPSZp277IG95Xb27m_q1lBvgwaGzTbrfwEAAP__bgc_cA">