public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Initialize EXIT_BLOCK count when profiling
@ 2017-06-06  8:11 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2017-06-06  8:11 UTC (permalink / raw)
  To: gcc-patches

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-06  8:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-06  8:11 Initialize EXIT_BLOCK count when profiling Jan Hubicka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).