llvm-project/llvm/test/Transforms/PGOProfile
Teresa Johnson fd2044f299 [PGO] Change hardcoded thresholds for cold/inlinehint to use summary
Summary:
The PGO counter reading will add cold and inlinehint (hot) attributes
to functions that are very cold or hot. This was using hardcoded
thresholds, instead of the profile summary cutoffs which are used in
other hot/cold detection and are more dynamic and adaptable. Switch
to using the summary-based cold/hot detection.

The hardcoded limits were causing some code that had a medium level of
hotness (per the summary) to be incorrectly marked with a cold
attribute, blocking inlining.

Reviewers: davidxl

Subscribers: llvm-commits

Tags: #llvm

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

llvm-svn: 372189
2019-09-17 23:12:13 +00:00
..
Inputs [PGO] Change hardcoded thresholds for cold/inlinehint to use summary 2019-09-17 23:12:13 +00:00
X86 Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
PR28219.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
PR41279.ll [PGO] Handle cases of non-instrument BBs 2019-06-10 22:36:27 +00:00
PR41279_2.ll [PGO] Handle cases of non-instrument BBs 2019-06-10 22:36:27 +00:00
branch1.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
branch2.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
chr.ll [SimplifyCFG] FoldTwoEntryPHINode(): consider *total* speculation cost, not per-BB cost 2019-09-16 16:18:24 +00:00
comdat_internal.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
comdat_rename.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
counter_promo.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
counter_promo_exit_merge.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
counter_promo_mexits.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
counter_promo_nest.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
criticaledge.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
cspgo_profile_summary.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
diag_FE_profile.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
diag_mismatch.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
diag_no_funcprofdata.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
diag_no_profile.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
diag_no_value_sites.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
do-not-instrument.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
func_entry.ll [PGO] Change hardcoded thresholds for cold/inlinehint to use summary 2019-09-17 23:12:13 +00:00
icp_covariant_call_return.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
icp_covariant_invoke_return.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
icp_invoke.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
icp_invoke_nouse.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
icp_mismatch_msg.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
icp_sample.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
icp_vararg.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
indirect_call_annotation.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
indirect_call_profile.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
indirect_call_promotion.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
indirect_call_promotion_byval.ll [PGO] Update ICP pass for recent byval type changes 2019-07-01 22:43:39 +00:00
indirect_call_promotion_vla.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
indirectbr.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
infinite_loop.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
infinite_loop_gen.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
irreducible.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
landingpad.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
large_count_remarks.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
loop1.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
loop2.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
memcpy.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
memop_clone.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
memop_size_annotation.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
memop_size_from_strlen.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
memop_size_opt.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
memop_size_opt_zero.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
misexpect-branch-correct.ll Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 16:19:50 +00:00
misexpect-branch-stripped.ll Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 16:19:50 +00:00
misexpect-branch-unpredictable.ll Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 16:19:50 +00:00
misexpect-branch.ll Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 16:19:50 +00:00
misexpect-switch-default.ll Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 16:19:50 +00:00
misexpect-switch.ll Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM" 2019-09-11 16:19:50 +00:00
multiple_hash_profile.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
noreturncall.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
preinline.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
remap.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
select1.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
select2.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
select_hash_conflict.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
single_bb.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
split-indirectbr-critical-edges.ll Revert "Temporarily Revert "Add basic loop fusion pass."" 2019-04-17 04:52:47 +00:00
statics_counter_naming.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
switch.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
thinlto_cspgo_gen.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
thinlto_cspgo_use.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
thinlto_indirect_call_promotion.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
thinlto_samplepgo_icp.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
thinlto_samplepgo_icp2.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
thinlto_samplepgo_icp3.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
thinlto_samplepgo_icp_droppeddead.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00
unreachable_bb.ll Reland "Change the X86 datalayout to add three address spaces 2019-09-10 23:15:38 +00:00