From: Jan Hubicka Date: Tue, 6 Jun 2017 08:03:55 +0000 (+0200) Subject: profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=873fa2048c2525d1282a11ccfd19de5d94089246;p=gcc.git profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile. * profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile. From-SVN: r248910 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a729fe4c75..9ffaa0ebc28 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-06 Jan Hubicka + + * profile.c (compute_branch_probabilities): Also initialize + EXIT_BLOCK profile. + 2017-06-06 Richard Biener PR tree-optimization/80928 diff --git a/gcc/profile.c b/gcc/profile.c index 219fa8a1b83..d0dc3b835b3 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -826,7 +826,7 @@ compute_branch_probabilities (unsigned cfg_checksum, unsigned lineno_checksum) } } - FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), NULL, next_bb) + FOR_ALL_BB_FN (bb, cfun) { edge e; edge_iterator ei;