On Wed, May 28, 2014 at 1:06 PM, Alex L <[email protected]> wrote:

> Sure, We need to call CodeGenPGO::assignRegionCounters for all functions
> because we want to emit counter variables for all functions in a
> translation unit, even if they aren't used.
>

Why do you want to emit counter variables for unused functions?  That seems
like useless object file bloat.


> 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.
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to