<div dir="ltr"><div class="gmail_default" style="font-family:monospace;font-size:small;color:#000000">Discard this comment -- this is intended for a different patch.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 22, 2020 at 2:52 PM David Li via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">davidxl added a comment.<br>
<br>
The PGOUse pass can choose not to annotate any branches with total weights == 0. Now the question becomes how do we tell PGOUse pass whether the entry should be set to 0 or leave it not set. There are two ways to do it (to signal it is not really cold, but unknown):<br>
<br>
1. Remove the function from the indexed format profile;<br>
2. set all counts to some sentinel value such as -1.<br>
<br>
<br>
Repository:<br>
  rG LLVM Github Monorepo<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D79485/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D79485/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D79485" rel="noreferrer" target="_blank">https://reviews.llvm.org/D79485</a><br>
<br>
<br>
<br>
</blockquote></div>