[LLVMdev] Indirect call site profiling
Diego Novillo
dnovillo at google.com
Wed Nov 5 11:21:39 PST 2014
On 11/05/14 13:52, Philip Reames wrote:
>
> On 11/03/2014 09:21 AM, Diego Novillo wrote:
>> A note on the profile. The sample pgo profiler tracks indirect
>> function calls via sampling at the call sites. Currently this data is
>> not being used in optimizations, but it's captured in the sample
>> profiles (lib/Transforms/Scalar/SampleProfile.cpp).
> We also have a custom profiling mechanism which collects similar
> data. It seems like moving forward with a common metadata format to
> exploit this would be interesting.
Absolutely. Currently, it's represented by class FunctionSamples
(include/llvm/ProfileData/SampleProf.h). I'm not particularly attached
to its encoding, so I'm open to any common representation we can use for
other profile sources.
Diego.
More information about the llvm-dev
mailing list