1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 13:02:52 +02:00
llvm-mirror/test/Transforms/PGOProfile
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
..
Inputs
X86 [PGO] resubmit r268969 2016-05-10 17:45:33 +00:00
branch1.ll Bring back r271090 in a way that doesn't depend on r271089. 2016-05-28 04:05:36 +00:00
branch2.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
comdat_internal.ll [PM] port IR based PGO prof-gen pass to new pass manager 2016-05-06 05:49:19 +00:00
criticaledge.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
diag_FE_profile.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
diag_mismatch.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
diag_no_funcprofdata.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
diag_no_profile.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
do-not-instrument.ll [PM] port IR based PGO prof-gen pass to new pass manager 2016-05-06 05:49:19 +00:00
icp_covariant_call_return.ll [PM] Port indirect call promotion pass to new pass manager 2016-05-16 16:31:07 +00:00
icp_covariant_invoke_return.ll [PM] Port indirect call promotion pass to new pass manager 2016-05-16 16:31:07 +00:00
icp_invoke.ll [PM] Port indirect call promotion pass to new pass manager 2016-05-16 16:31:07 +00:00
icp_mismatch_msg.ll make icall pass name consistent /NFC 2016-06-02 01:52:05 +00:00
icp_vararg.ll [PM] Port indirect call promotion pass to new pass manager 2016-05-16 16:31:07 +00:00
indirect_call_annotation.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
indirect_call_profile.ll [profile] value profiling bug fix -- missing icall targets in profile-use 2016-06-02 16:33:41 +00:00
indirect_call_promotion.ll make icall pass name consistent /NFC 2016-06-02 01:52:05 +00:00
landingpad.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
loop1.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
loop2.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00
single_bb.ll [PM] port IR based PGO prof-gen pass to new pass manager 2016-05-06 05:49:19 +00:00
switch.ll [PM]: port IR based profUse pass to new pass manager 2016-05-10 21:59:52 +00:00