[Changing the title to make it different from the llvm patch. David, can you please look at this as well?]
Hopefully this will make it easier for the next person to figure all
this out...
Differential D18489
[PGO, clang] Comment how function pointers for indirect calls are mapped to function names anemet on Mar 26 2016, 2:05 AM. Authored by
Details
[Changing the title to make it different from the llvm patch. David, can you please look at this as well?] Hopefully this will make it easier for the next person to figure all
Diff Detail Event Timeline
Comment Actions What I meant is that putting the comments in InstrProfData.inc file, and David Comment Actions Sounds good. You mean CGCall.cpp instead of CodeGenPGO.cpp though, correct? So to summarize, I'll move this comment to InstrProfData.inc and just have a reference to it in CGCall.cpp before the call to valueProfile. OK? Comment Actions The summary of commits: llvm: http://reviews.llvm.org/rL264678 |
CodeGenPGO::valueProfile is a common API which can also be used for other kinds of value profile, so the comments belong to the callsite of this method in CGCall.cpp.
Suggested wording:
For indirect function call value profiling, the addresses of the target functions are profiled by the instrumented code. The target addresses are written in the raw profile data and converted to target function name's MD5 hash by the profile reader during deserialization.