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;

Reply via email to