aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-06-06 10:03:55 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2017-06-06 08:03:55 +0000
commit873fa2048c2525d1282a11ccfd19de5d94089246 (patch)
tree9a8be5af06029d351493876b248414a7938556c3 /gcc/profile.c
parente7baeb396d313ef141f972cdedc19b12ef1b9cfe (diff)
downloadgcc-873fa2048c2525d1282a11ccfd19de5d94089246.zip
gcc-873fa2048c2525d1282a11ccfd19de5d94089246.tar.gz
gcc-873fa2048c2525d1282a11ccfd19de5d94089246.tar.bz2
profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile.
* profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile. From-SVN: r248910
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index 219fa8a..d0dc3b8 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;