From 873fa2048c2525d1282a11ccfd19de5d94089246 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 6 Jun 2017 10:03:55 +0200 Subject: [PATCH] profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile. * profile.c (compute_branch_probabilities): Also initialize EXIT_BLOCK profile. From-SVN: r248910 --- gcc/ChangeLog | 5 +++++ gcc/profile.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2