diff options
author | Martin Liska <mliska@suse.cz> | 2018-11-05 08:32:48 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-11-05 07:32:48 +0000 |
commit | e53f77c666d6806c2e8c288ca1affa1497453e57 (patch) | |
tree | 61dd6f8f15a1f10381470378b055d13766499c3e /gcc/ipa-profile.c | |
parent | 51020b00c72fff04f3acd0cc21a61bedd789f39c (diff) | |
download | gcc-e53f77c666d6806c2e8c288ca1affa1497453e57.zip gcc-e53f77c666d6806c2e8c288ca1affa1497453e57.tar.gz gcc-e53f77c666d6806c2e8c288ca1affa1497453e57.tar.bz2 |
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.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index c74f4a4..7065af5 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); } } |