This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Initialize EXIT_BLOCK count when profiling
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 6 Jun 2017 10:11:41 +0200
- Subject: Initialize EXIT_BLOCK count when profiling
- Authentication-results: sourceware.org; auth=none
Hi,
this patch makes the count initialization loop to also visit EXIT_BLOCK.
Profiledbootstrapped/regtested x86_64-linux, comitted.
Honza
* profile.c (compute_branch_probabilities): Also initialize
EXIT_BLOCK profile.
Index: profile.c
===================================================================
--- profile.c (revision 248886)
+++ profile.c (working copy)
@@ -826,7 +826,7 @@ compute_branch_probabilities (unsigned c
}
}
- FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR_FOR_FN (cfun), NULL, next_bb)
+ FOR_ALL_BB_FN (bb, cfun)
{
edge e;
edge_iterator ei;