[PATCH] D25456: [InstrProf] Add support for dead_strip+live_support functionality

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 21:51:09 PDT 2016


mehdi_amini added a comment.

In https://reviews.llvm.org/D25456#566952, @vsk wrote:

> In https://reviews.llvm.org/D25456#566944, @mehdi_amini wrote:
>
> > Are these symbols already in the "llvm.compiler_used" list?
>
>
> No, contents of __llvm_prf_data are in llvm.used, which is a bit stricter. Actually, this is very unexpected.. is dead-stripping of live_support sections supposed to kick in for symbols in the llvm.used list? I only expect this to happen for the llvm.compiler_used list.


Well, in theory we should use llvm.compiler_used, but by "chance" ld64 ignore the "no dead strip" attribute (that results from llvm.used) when doing the special processing for "live_support"


https://reviews.llvm.org/D25456





More information about the llvm-commits mailing list