summaryrefslogtreecommitdiff
path: root/gcc/ipa-profile.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-11-05 08:32:48 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-11-05 07:32:48 +0000
commite53f77c666d6806c2e8c288ca1affa1497453e57 (patch)
tree61dd6f8f15a1f10381470378b055d13766499c3e /gcc/ipa-profile.c
parent51020b00c72fff04f3acd0cc21a61bedd789f39c (diff)
Fix setting of hotness in non-LTO mode (PR gcov-profile/77698).
2018-11-05 Martin Liska <mliska@suse.cz> PR gcov-profile/77698 * ipa-profile.c (ipa_profile): Adjust hotness threshold only in LTO mode. 2018-11-05 Martin Liska <mliska@suse.cz> PR gcov-profile/77698 * gcc.dg/tree-prof/pr77698.c: New test. From-SVN: r265784
Diffstat (limited to 'gcc/ipa-profile.c')
-rw-r--r--gcc/ipa-profile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c
index c74f4a4a41d..7065af59ba9 100644
--- a/gcc/ipa-profile.c
+++ b/gcc/ipa-profile.c
@@ -533,11 +533,10 @@ ipa_profile (void)
cumulated_size * 100.0 / overall_size);
}
- if (threshold > get_hot_bb_threshold ()
- || in_lto_p)
+ if (in_lto_p)
{
if (dump_file)
- fprintf (dump_file, "Threshold updated.\n");
+ fprintf (dump_file, "Setting hotness threshold in LTO mode.\n");
set_hot_bb_threshold (threshold);
}
}