hanchenye-llvm-project/llvm/test/Instrumentation/InstrProfiling
Vedant Kumar de2ae96710 [InstrProf] Add support for dead_strip+live_support functionality
On Darwin, marking a section as "regular,live_support" means that a
symbol in the section should only be kept live if it has a reference to
something that is live. Otherwise, the linker is free to dead-strip it.

Turn this functionality on for the __llvm_prf_data section.

This means that counters and data associated with dead functions will be
removed from dead-stripped binaries. This will result in smaller
profiles and binaries, and should speed up profile collection.

Tested with check-profile, llvm-lit test/tools/llvm-{cov,profdata}, and
check-llvm.

Differential Revision: https://reviews.llvm.org/D25456

llvm-svn: 283947
2016-10-11 21:48:16 +00:00
..
X86
PR23499.ll [InstrProf] Add support for dead_strip+live_support functionality 2016-10-11 21:48:16 +00:00
icall.ll [profile] Static counter allocation for value profiling (part-1) 2016-05-21 22:55:34 +00:00
linkage.ll [profile] Fix runtime hook linkage bug for COFF 2016-05-24 18:47:38 +00:00
no-counters.ll Port InstrProfiling pass to the new pass manager 2016-04-18 17:47:38 +00:00
noruntime.ll Port InstrProfiling pass to the new pass manager 2016-04-18 17:47:38 +00:00
platform.ll [InstrProf] Add support for dead_strip+live_support functionality 2016-10-11 21:48:16 +00:00
profiling.ll [InstrProf] Add support for dead_strip+live_support functionality 2016-10-11 21:48:16 +00:00