diff options
author | Bin Cheng <bin.cheng@linux.alibaba.com> | 2018-12-14 05:46:55 +0000 |
---|---|---|
committer | Bin Cheng <amker@gcc.gnu.org> | 2018-12-14 05:46:55 +0000 |
commit | b30bde1063f9b0399d1d06fdc08aec12bb025843 (patch) | |
tree | f5844c3afbc5b35afdeb9db37806ef5eb12b9905 /gcc | |
parent | 7f3477fb787cc885bfb11d2e8c8dae675a3129d0 (diff) | |
download | gcc-b30bde1063f9b0399d1d06fdc08aec12bb025843.zip gcc-b30bde1063f9b0399d1d06fdc08aec12bb025843.tar.gz gcc-b30bde1063f9b0399d1d06fdc08aec12bb025843.tar.bz2 |
auto-profile.c (afdo_annotate_cfg): Call update_max_bb_count even if autofdo counts are all zeros.
* auto-profile.c (afdo_annotate_cfg): Call update_max_bb_count even
if autofdo counts are all zeros.
From-SVN: r267121
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/auto-profile.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb5824a..39521bc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2018-12-14 Bin Cheng <bin.cheng@linux.alibaba.com> + * auto-profile.c (afdo_annotate_cfg): Call update_max_bb_count even + if autofdo counts are all zeros. + +2018-12-14 Bin Cheng <bin.cheng@linux.alibaba.com> + * auto-profile.c (afdo_indirect_call): Skip generating histogram value for internal call. diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index f51a4bf..d337cbc 100644 --- a/gcc/auto-profile.c +++ b/gcc/auto-profile.c @@ -1553,9 +1553,9 @@ afdo_annotate_cfg (const stmt_set &promoted_stmts) { /* Calculate, propagate count and probability information on CFG. */ afdo_calculate_branch_prob (&annotated_bb); - update_max_bb_count (); - profile_status_for_fn (cfun) = PROFILE_READ; } + update_max_bb_count (); + profile_status_for_fn (cfun) = PROFILE_READ; if (flag_value_profile_transformations) { gimple_value_profile_transformations (); |