mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
7f3477fb78
commit
b30bde1063
|
|
@ -1,3 +1,8 @@
|
|||
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
|
||||
|
|
|
|||
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Reference in New Issue