aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-11-06 14:45:41 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-11-06 13:45:41 +0000
commit8e7d1486f6635614f97e26f27ed8033f647ef6f2 (patch)
tree48517ad3ae0dc37801c611131c9093c4b7475294 /gcc/predict.c
parent454f8b2b0c6f9645b3df6be98efe2ca520f2ce82 (diff)
downloadgcc-8e7d1486f6635614f97e26f27ed8033f647ef6f2.zip
gcc-8e7d1486f6635614f97e26f27ed8033f647ef6f2.tar.gz
gcc-8e7d1486f6635614f97e26f27ed8033f647ef6f2.tar.bz2
re PR bootstrap/82832 (Broken PGO LTO bootstrap on x86_64 after r254379)
PR bootstrap/82832 * ipa-inline-transform.c (update_noncloned_frequencies): Always scale. (inline_transform): Likewise. * predict.c (counts_to_freqs): Remove useless conditional. * profile-count.h (profile_count::apply_scale): Move sanity check. * tree-inline.c (copy_bb): Always scale. (copy_cfg_body): Likewise. From-SVN: r254452
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index cf42ccb..0fd2b72 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -3324,8 +3324,7 @@ counts_to_freqs (void)
basic_block bb;
FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), NULL, next_bb)
- if (!(bb->count < true_count_max))
- true_count_max = true_count_max.max (bb->count);
+ true_count_max = true_count_max.max (bb->count);
cfun->cfg->count_max = true_count_max;