diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-11-06 14:45:41 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-11-06 13:45:41 +0000 |
commit | 8e7d1486f6635614f97e26f27ed8033f647ef6f2 (patch) | |
tree | 48517ad3ae0dc37801c611131c9093c4b7475294 /gcc/predict.c | |
parent | 454f8b2b0c6f9645b3df6be98efe2ca520f2ce82 (diff) | |
download | gcc-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.c | 3 |
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; |