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

    <tr>
        <th>Summary</th>
        <td>
            [BOLT] hugify option doesn't work and no use of AnonHugePages.
        </td>
    </tr>

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

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

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

<pre>
    According to options, hugify could put hot code on 2MB page(s) (hugify) at runtime automatically. I see it uses transparent hugepages.
But i didn't see any use of AnonHugePages after applying hugify.

My bolt commands with hugify are as follows:

llvm-bolt -hugify ./test_pie -o ./test_pie.hugify -data=./test_pie.fdata

My SUT is Ubuntu22.04 and the kernel version is 5.15.0-56-generic.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUsGOozgQ_RpzKYHAhqQ5cEg2inalbW1L232Y06iCC_C0sZFd7ih_P4KkNdPSXEC236t6Ve9hjGZ0RJ1ojqI5ZZh48qF7IabwDd1Yyezi9a079L0P2rgR2INf2HgXhfwLpjSa4Qa9T1bDkhgmz9B7TeAdyOcjLDiSkE9RyBaEfLrj1wMyhOTYzASY2M_IpkdrbwX8A5EIDEOKFIEDurhgIMdrN1oLxkKUJ1EejonBgDbaCbnnjYbutvLAD3Bw3v2dRnpZGYADUwBcFntbx7gLedS5f59vcPF2lT_P6HSEq-Hpc0IMBBhh8Nb6axTq8DvT2o8537j5A14IeWaK_H0xBLn_ci4emFwjo1CnL2_DdvlV1f9vr2AivF2S4yRlUdaATgNPBO8UHFn4oBCNdyuqKaqmKPNml4_kKJi-yHSndKtazKirdnulqrbd19nUlUgksW3Uk8K9wnZQtWqwUnutd7RXKjOdLKUqq6osVbmr6qJvq0HWLdVa9buqJFGXNKOxxbqBwocxMzEm6pq2rVRm8UI2btGS0tEVtkch5Zq00N23lsYo6tKayPFXFTZst0we__v3VTSnTxfuyQPtKd4tv_rwvi3D-T_aXmQp2G5iXjbP5FnI82h4Spei97OQ57Xl45cvwf-gnoU8b0KjkOdtkJ8BAAD__0nTBmg">