llvm-project/llvm/lib/ProfileData
Hongtao Yu 1662cfa4be [CSSPGO][CSProfileConverter] Remove call target samples when including callee samples into caller.
When a flat CS profile is converted to a nested profile, the call target samples for inlined callee contexts are left over in the callsite target map. This could cause indirect call promotion to function improperly. One issue is that the inlined callsites are treated with double amount of samples. The other is the inlined callsites are reconsidered for subsequent PGO ICP.

I'm fixing this by excluding call targets from the callsite for inlined targets. While fixing this I found that callsite target sum and the number of body samples for that callsite could be mismatched. {D122609} has an explanation and a fix for that on llvm-profgen side. For now I'm tolerating it in this change.

Reviewed By: wenlei

Differential Revision: https://reviews.llvm.org/D125266
2022-05-13 09:19:32 -07:00
..
Coverage [Support] Change zlib::compress to return void 2022-03-14 11:38:04 -07:00
CMakeLists.txt Reland "[memprof] Extend the index prof format to include memory profiles." 2022-02-17 22:09:52 -08:00
GCOV.cpp [llvm-cov gcov] Fix calculating coverage of template functions 2022-03-15 20:46:22 +04:00
InstrProf.cpp [Support] Change zlib::compress to return void 2022-03-14 11:38:04 -07:00
InstrProfCorrelator.cpp Cleanup includes: ProfileData 2022-02-24 13:25:11 +01:00
InstrProfReader.cpp [memprof] Use unknown_function error type for missing functions 2022-05-04 13:02:30 -07:00
InstrProfWriter.cpp [memprof] Deduplicate and outline frame storage in the memprof profile. 2022-04-08 09:15:20 -07:00
MemProf.cpp [memprof] Deduplicate and outline frame storage in the memprof profile. 2022-04-08 09:15:20 -07:00
ProfileSummaryBuilder.cpp [CSSPGO] Rename ProfileIsCSNested and ProfileIsCSFlat 2022-04-29 17:03:52 -07:00
RawMemProfReader.cpp [memprof] Deduplicate and outline frame storage in the memprof profile. 2022-04-08 09:15:20 -07:00
SampleProf.cpp [CSSPGO][CSProfileConverter] Remove call target samples when including callee samples into caller. 2022-05-13 09:19:32 -07:00
SampleProfReader.cpp [CSSPGO] Rename ProfileIsCSNested and ProfileIsCSFlat 2022-04-29 17:03:52 -07:00
SampleProfWriter.cpp [CSSPGO] Rename ProfileIsCSNested and ProfileIsCSFlat 2022-04-29 17:03:52 -07:00