llvm-project/llvm/test/Instrumentation/InstrProfiling
Reid Kleckner 4fb3502bc9 [InstrProf] Use separate comdat group for data and counters
Summary:
I hadn't realized that instrumentation runs before inlining, so we can't
use the function as the comdat group. Doing so can create relocations
against discarded sections when references to discarded __profc_
variables are inlined into functions outside the function's comdat
group.

In the future, perhaps we should consider standardizing the comdat group
names that ELF and COFF use. It will save object file size, since
__profv_$sym won't appear in the symbol table again.

Reviewers: xur, vsk

Subscribers: eraman, hiraditya, cfe-commits, #sanitizers, llvm-commits

Tags: #clang, #sanitizers, #llvm

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

llvm-svn: 355044
2019-02-27 23:38:44 +00:00
..
X86
PR23499.ll [InstrProf] Use separate comdat group for data and counters 2019-02-27 23:38:44 +00:00
always_inline.ll
atomic-updates.ll [InstrProf] Use atomic profile counter updates for TSan 2018-08-16 22:24:47 +00:00
comdat.ll [InstrProf] Use separate comdat group for data and counters 2019-02-27 23:38:44 +00:00
early-exit.ll
icall.ll
linkage.ll [InstrProf] Implement static profdata registration 2019-02-08 19:03:50 +00:00
no-counters.ll
noruntime.ll
platform.ll [InstrProf] Implement static profdata registration 2019-02-08 19:03:50 +00:00
profiling.ll