1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/Instrumentation/InstrProfiling
Xinliang David Li 09755f1a0a [profile] value profiling bug fix -- missing icall targets in profile-use
Inline virtual functions has linkeonceodr linkage (emitted in comdat on 
supporting targets). If the vtable for the class is not emitted in the
defining module, function won't be address taken thus its address is not
recorded. At the mercy of the linker, if the per-func prf_data from this
module (in comdat) is picked at link time, we will lose mapping from
function address to its hash val. This leads to missing icall promotion.
The second test case (currently disabled) in compiler_rt (r271528): 
instrprof-icall-prom.test demostrates the bug. The first profile-use
subtest is fine due to linker order difference.

With this change, no missing icall targets is found in instrumented clang's
raw profile.

llvm-svn: 271532
2016-06-02 16:33:41 +00:00
..
X86 [PGO] Add test case to ensure covmap section is not allocatable. 2016-02-26 03:05:10 +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 Add missing tests for new PM 2016-05-10 23:37:19 +00:00
PR23499.ll [profile] value profiling bug fix -- missing icall targets in profile-use 2016-06-02 16:33:41 +00:00
profiling.ll Port InstrProfiling pass to the new pass manager 2016-04-18 17:47:38 +00:00