This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Initialize EXIT_BLOCK count when profiling


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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]