llvm-project/compiler-rt/test/profile/Inputs
Ellis Hoag 11d3074267 [InstrProf] Add single byte coverage mode
Use the llvm flag `-pgo-function-entry-coverage` to create single byte "counters" to track functions coverage. This mode has significantly less size overhead in both code and data because
  * We mark a function as "covered" with a store instead of an increment which generally requires fewer assembly instructions
  * We use a single byte per function rather than 8 bytes per block

The trade off of course is that this mode only tells you if a function has been covered. This is useful, for example, to detect dead code.

When combined with debug info correlation [0] we are able to create an instrumented Clang binary that is only 150M (the vanilla Clang binary is 143M). That is an overhead of 7M (4.9%) compared to the default instrumentation (without value profiling) which has an overhead of 31M (21.7%).

[0] https://groups.google.com/g/llvm-dev/c/r03Z6JoN7d4

Reviewed By: kyulee

Differential Revision: https://reviews.llvm.org/D116180
2022-01-27 17:38:55 -08:00
..
comdat_rename.h
comdat_rename_1.cpp Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
comdat_rename_2.cpp Revert "Use uint64_t for branch weights instead of uint32_t" 2020-10-31 00:25:32 -07:00
extern_template.cpp
extern_template.h
extern_template1.cpp
extern_template2.cpp
gcc-flag-compatibility.c
instrprof-alloc.c
instrprof-comdat-1.cpp
instrprof-comdat-2.cpp
instrprof-comdat.h Reland [Coverage] Add comment to skipped regions 2020-07-28 13:20:57 -07:00
instrprof-debug-info-correlate-bar.h [InstrProf] Add single byte coverage mode 2022-01-27 17:38:55 -08:00
instrprof-debug-info-correlate-foo.cpp [InstrProf] Add single byte coverage mode 2022-01-27 17:38:55 -08:00
instrprof-debug-info-correlate-main.cpp [InstrProf] Add single byte coverage mode 2022-01-27 17:38:55 -08:00
instrprof-dlopen-dlclose-main.c
instrprof-dlopen-func.c
instrprof-dlopen-func2.c
instrprof-dlopen-func3.c
instrprof-dlopen-main.c
instrprof-dynamic-a.cpp
instrprof-dynamic-b.cpp
instrprof-dynamic-header.h
instrprof-dynamic-main.cpp
instrprof-file_ex.c
instrprof-gcov-exceptions.cpp
instrprof-gcov-exceptions.cpp.gcov
instrprof-gcov-multiple-bbs-single-line.c
instrprof-gcov-multiple-bbs-single-line.c.gcov [llvm-cov gcov] Compute unmeasured arc counts by Kirchhoff's circuit law 2020-09-08 18:45:11 -07:00
instrprof-gcov-multithread_fork.cpp
instrprof-gcov-one-line-function.c
instrprof-gcov-one-line-function.c.gcov
instrprof-gcov-parallel.driver.c
instrprof-gcov-parallel.target.c
instrprof-gcov-switch1.c
instrprof-gcov-switch1.c.gcov
instrprof-gcov-switch2.c
instrprof-gcov-switch2.c.gcov
instrprof-get-filename-dso.c
instrprof-icall-promo.h
instrprof-icall-promo_1.cpp
instrprof-icall-promo_2.cpp
instrprof-merge-match-lib.c
instrprof-merge-match.c
instrprof-order-file-2.c
instrprof-order-file.c
instrprof-shared-lib.c
instrprof-shared-lib_in-loop.c.gcov
instrprof-shared-main.c
instrprof-shared-main.c.gcov
instrprof-value-prof-evict.c
instrprof-value-prof-real.c
instrprof-value-prof-visibility.c