Mercurial > hg > CbC > CbC_gcc
diff gcc/gimple-streamer-in.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/gimple-streamer-in.c Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/gimple-streamer-in.c Thu Oct 25 07:37:49 2018 +0900 @@ -1,6 +1,6 @@ /* Routines for reading GIMPLE from a file stream. - Copyright (C) 2011-2017 Free Software Foundation, Inc. + Copyright (C) 2011-2018 Free Software Foundation, Inc. Contributed by Diego Novillo <dnovillo@google.com> This file is part of GCC. @@ -264,10 +264,13 @@ index = streamer_read_uhwi (ib); bb = BASIC_BLOCK_FOR_FN (fn, index); - bb->count = profile_count::stream_in (ib).apply_scale - (count_materialization_scale, REG_BR_PROB_BASE); - bb->frequency = streamer_read_hwi (ib); + bb->count = profile_count::stream_in (ib); + if (count_materialization_scale != REG_BR_PROB_BASE + && bb->count.ipa ().nonzero_p ()) + bb->count + = bb->count.apply_scale (count_materialization_scale, REG_BR_PROB_BASE); bb->flags = streamer_read_hwi (ib); + bb->discriminator = streamer_read_hwi (ib); /* LTO_bb1 has statements. LTO_bb0 does not. */ if (tag == LTO_bb0)