<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace;font-size:small;color:#000000"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 11, 2021 at 4:40 PM Ellis Hoag 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">ellis added a comment.<br>
<br>
In D104060#2814525 <<a href="https://reviews.llvm.org/D104060#2814525" rel="noreferrer" target="_blank">https://reviews.llvm.org/D104060#2814525</a>>, @davidxl wrote:<br>
<br>
> Do you have runtime number with -fcs-profile-generate -mllvm<br>
> -disable-vp=true<br>
><br>
> This will provide more data (BB count) than what MIP can do.<br>
><br>
> Besides, more options can be added to control the type of profile data<br>
> collected in IRPGO to further reduce overhead.<br>
><br>
> David<br>
<br>
I've added those numbers here <a href="https://gist.github.com/ellishg/92a68cf82bfdeccd10225154425edc69#gistcomment-3777527" rel="noreferrer" target="_blank">https://gist.github.com/ellishg/92a68cf82bfdeccd10225154425edc69#gistcomment-3777527</a><br>
<br>
The flags `-fcs-profile-generate -mllvm -disable-vp=true` appears to increase binary size by 4-9x and execution time is increased in many cases.<br>
<br></blockquote><div><br></div><div class="gmail_default" style="font-family:monospace;font-size:small;color:rgb(0,0,0)">Can you use the same set of benchmarks for comparison?  </div><div class="gmail_default" style="font-family:monospace;font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-family:monospace;font-size:small;color:rgb(0,0,0)">1) is MIP used in the test only for function coverage or have call counts collected as well?</div><div class="gmail_default" style="font-family:monospace;font-size:small;color:rgb(0,0,0)">2) for -fcs-profile-generate, the size increase may mostly come from the name section. Can you compare .text + .data + .bss</div><div class="gmail_default" style="font-family:monospace;font-size:small;color:rgb(0,0,0)"></div><div class="gmail_default" style="font-family:monospace;font-size:small;color:rgb(0,0,0)">David</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Repository:<br>
  rG LLVM Github Monorepo<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D104060/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D104060/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D104060" rel="noreferrer" target="_blank">https://reviews.llvm.org/D104060</a><br>
<br>
</blockquote></div></div>