diff options
| author | Vedant Kumar <vsk@apple.com> | 2016-10-11 21:48:16 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2016-10-11 21:48:16 +0000 |
| commit | de2ae96710eefed954dc263931ff4577f08dc694 (patch) | |
| tree | 0649bda3ac546b7b0ba4a2ee7fedca02ddaf8089 /llvm/test/Instrumentation/InstrProfiling/platform.ll | |
| parent | a09d11e108bbe12207dbfa22603869a2d87eacff (diff) | |
| download | bcm5719-llvm-de2ae96710eefed954dc263931ff4577f08dc694.tar.gz bcm5719-llvm-de2ae96710eefed954dc263931ff4577f08dc694.zip | |
[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
Diffstat (limited to 'llvm/test/Instrumentation/InstrProfiling/platform.ll')
| -rw-r--r-- | llvm/test/Instrumentation/InstrProfiling/platform.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Instrumentation/InstrProfiling/platform.ll b/llvm/test/Instrumentation/InstrProfiling/platform.ll index 8dc87d5ba27..b731fc3e5ff 100644 --- a/llvm/test/Instrumentation/InstrProfiling/platform.ll +++ b/llvm/test/Instrumentation/InstrProfiling/platform.ll @@ -18,7 +18,7 @@ ; MACHO: @__profc_foo = hidden global [1 x i64] zeroinitializer, section "__DATA,__llvm_prf_cnts", align 8 ; ELF: @__profc_foo = hidden global [1 x i64] zeroinitializer, section "__llvm_prf_cnts", align 8 -; MACHO: @__profd_foo = hidden {{.*}}, section "__DATA,__llvm_prf_data", align 8 +; MACHO: @__profd_foo = hidden {{.*}}, section "__DATA,__llvm_prf_data,regular,live_support", align 8 ; LINUX: @__profd_foo = hidden {{.*}}, section "__llvm_prf_data", align 8 ; FREEBSD: @__profd_foo = hidden {{.*}}, section "__llvm_prf_data", align 8 ; PS4: @__profd_foo = hidden {{.*}}, section "__llvm_prf_data", align 8 |

