llvm-project/llvm/tools/llvm-profgen
wlei 484a569eea [llvm-profgen] Fix total samples related issues
Since total sample and body sample are used to compute hotness threshold in compiler, we found in some services changing the total samples computation will cause noticeable regression. Hence, here we will revert the changes and just keep all total samples number identical to the old tool.

Three changes in this diff:

1. Revert previous diff(https://reviews.llvm.org/D112672: [llvm-profgen] Update total samples by accumulating all its body samples) and put it under a switch.

2. Keep the negative line number. Although compiler doesn't consume the count but it will be used to compute hot threshold.

3. Change to accumulate total samples per byte instead of per instruction.

Reviewed By: hoy, wenlei

Differential Revision: https://reviews.llvm.org/D115013
2021-12-08 12:33:41 -08:00
..
CMakeLists.txt [llvm-profgen] Switch to DWARF-based symbol and ranges 2021-10-29 09:59:12 -07:00
CSPreInliner.cpp [CSSPGO] Sorting nodes in a cycle of profiled call graph. 2021-11-30 09:01:08 -08:00
CSPreInliner.h [CSSPGO] Split context string to deduplicate function name used in the context. 2021-08-30 20:09:29 -07:00
CallContext.h [CSSPGO] Rename the field of SampleContextFrame 2021-10-04 19:06:59 -07:00
ErrorHandling.h [llvm-profgen] Fix bug of setting function entry 2021-11-12 12:18:43 -08:00
PerfReader.cpp [FS-AFDO][llvm-profgen] Generate profile with FS-AFDO discriminator 2021-11-30 15:57:59 -08:00
PerfReader.h [llvm-profgen] Fix bug of setting function entry 2021-11-12 12:18:43 -08:00
ProfileGenerator.cpp [llvm-profgen] Fix total samples related issues 2021-12-08 12:33:41 -08:00
ProfileGenerator.h [llvm-profgen] Fix total samples related issues 2021-12-08 12:33:41 -08:00
ProfiledBinary.cpp [llvm-profgen] Fix total samples related issues 2021-12-08 12:33:41 -08:00
ProfiledBinary.h [llvm-profgen] Fix total samples related issues 2021-12-08 12:33:41 -08:00
llvm-profgen.cpp [llvm-profgen] Allow unsymbolized profile as perf input 2021-10-25 23:58:08 -07:00