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

    <tr>
        <th>Summary</th>
        <td>
            PGO-Enabled lld become no-op due to early exit
        </td>
    </tr>

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

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

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

<pre>
    Ref: https://github.com/llvm/llvm-project/blob/2e0c2154a8dc5d8ab2a8cf360aa0184fb58c0860/lld/tools/lld/lld.cpp#L90

Due to early exit. PGO in lld won't be called to writeout the collected PGO profile before exiting
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkcuOnDoQhp_GbKxGRYExvfCij_owmygzyhv4UnQ7qsYIm57M20eQm5RdNrYsuX799X0253ibiYxQ_wl1rexW7mk1n-0zMlPlUvgwX2gS7UXeS1myaC8CR4HjLZb75mqfHgJH5uev67Ss6Sv5InB0nJzAEQk8NqqzQ_AqDNahHfzU9mAtNEM3OTV4GHo4AoLAsaTE-feLOdR-WQS2n84g4Crg8uO8biRLkmRX_pD0LZZavr28yjhL5iDf0yxQF-lIestMYf_7vsZCaSuy3En6xEy-UDjGljVNkUk6mtJKR16cb1UwbTi3Z1uRaTQ2wxl6rau70diRmvTQt1orHIJSTevOvgvKKuiwr6JBwA40KuiVVromD-2klIfeBWwtiA7oYSPXO7U6rbcq5ryRaQBU01dsHXE-tCAeJHD3s5oDsttuWXTAMZf8J6DEwmTeXl5P_8_W7TvvJBz59CA5p1NaZPgbWrWtbP5Z7VF1d_Sz7dPg9wAAAP__Ezq4zA">