llvm-project/llvm/test/Transforms/PGOProfile
Richard Smith 6c67662816 Add a flag to remap manglings when reading profile data information.
This can be used to preserve profiling information across codebase
changes that have widespread impact on mangled names, but across which
most profiling data should still be usable. For example, when switching
from libstdc++ to libc++, or from the old libstdc++ ABI to the new ABI,
or even from a 32-bit to a 64-bit build.

The user can provide a remapping file specifying parts of mangled names
that should be treated as equivalent (eg, std::__1 should be treated as
equivalent to std::__cxx11), and profile data will be treated as
applying to a particular function if its name is equivalent to the name
of a function in the profile data under the provided equivalences. See
the documentation change for a description of how this is configured.

Remapping is supported for both sample-based profiling and instruction
profiling. We do not support remapping indirect branch target
information, but all other profile data should be remapped
appropriately.

Support is only added for the new pass manager. If someone wants to also
add support for this for the old pass manager, doing so should be
straightforward.

This is the LLVM side of Clang r344199.

Reviewers: davidxl, tejohnson, dlj, erik.pilkington

Subscribers: mehdi_amini, steven_wu, dexonsmith, llvm-commits

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

llvm-svn: 344200
2018-10-10 23:13:47 +00:00
..
Inputs Add a flag to remap manglings when reading profile data information. 2018-10-10 23:13:47 +00:00
X86
PR28219.ll
branch1.ll
branch2.ll
chr.ll [PGO] Control Height Reduction 2018-09-04 17:19:13 +00:00
comdat_internal.ll
comdat_rename.ll [InstrProf] Use comdats on COFF for available_externally functions 2018-07-26 22:59:17 +00:00
counter_promo.ll
counter_promo_exit_merge.ll
counter_promo_mexits.ll
counter_promo_nest.ll
criticaledge.ll
diag_FE_profile.ll
diag_mismatch.ll
diag_no_funcprofdata.ll
diag_no_profile.ll
do-not-instrument.ll
icp_covariant_call_return.ll
icp_covariant_invoke_return.ll
icp_invoke.ll
icp_invoke_nouse.ll
icp_mismatch_msg.ll [PGO] add target md5sum in warning message for icall 2018-08-24 21:38:24 +00:00
icp_sample.ll
icp_vararg.ll
indirect_call_annotation.ll
indirect_call_profile.ll
indirect_call_promotion.ll
indirect_call_promotion_vla.ll
indirectbr.ll
infinite_loop.ll
infinite_loop_gen.ll
irreducible.ll
landingpad.ll
large_count_remarks.ll
loop1.ll
loop2.ll
memcpy.ll
memop_clone.ll [PGOMemOPSize] Preserve the DominatorTree 2018-07-09 08:07:21 +00:00
memop_size_annotation.ll
memop_size_from_strlen.ll
memop_size_opt.ll [PGOMemOPSize] Preserve the DominatorTree 2018-07-09 08:07:21 +00:00
memop_size_opt_zero.ll [PGOMemOPSize] Preserve the DominatorTree 2018-07-09 08:07:21 +00:00
multiple_hash_profile.ll
noreturncall.ll
preinline.ll
remap.ll Add a flag to remap manglings when reading profile data information. 2018-10-10 23:13:47 +00:00
select1.ll
select2.ll
single_bb.ll
split-indirectbr-critical-edges.ll
statics_counter_naming.ll
switch.ll
thinlto_indirect_call_promotion.ll
thinlto_samplepgo_icp.ll
thinlto_samplepgo_icp2.ll
thinlto_samplepgo_icp3.ll
thinlto_samplepgo_icp_droppeddead.ll
unreachable_bb.ll