From: amker Date: Fri, 14 Dec 2018 05:46:55 +0000 (+0000) Subject: * auto-profile.c (afdo_annotate_cfg): Call update_max_bb_count even X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91199290ebb1c414594954ba9b2297d13efa9030;p=thirdparty%2Fgcc.git * auto-profile.c (afdo_annotate_cfg): Call update_max_bb_count even if autofdo counts are all zeros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267121 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb5824a7caff..39521bc129e9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-12-14 Bin Cheng + + * auto-profile.c (afdo_annotate_cfg): Call update_max_bb_count even + if autofdo counts are all zeros. + 2018-12-14 Bin Cheng * auto-profile.c (afdo_indirect_call): Skip generating histogram diff --git a/gcc/auto-profile.c b/gcc/auto-profile.c index f51a4bf4ce11..d337cbc72003 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 ();