<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 28, 2014 at 1:06 PM, Alex L <span dir="ltr"><<a href="mailto:arphaman@gmail.com" target="_blank">arphaman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Sure, We need to call CodeGenPGO::assignRegionCounters for all functions <br>because we want to emit counter variables for all functions in a translation unit, even if they aren't used.</div></blockquote>
<div><br></div><div>Why do you want to emit counter variables for unused functions? That seems like useless object file bloat.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Currently static functions, and also class methods defined inside a class and inline methods defined outside of class aren't processed by assignRegionCounters when they aren't used. Therefore we have to emit those functions so that the profile counters are also emitted for them.</div>
</blockquote></div></div></div>