profile.c (edge_gcov_counts): Turn to pointer.
authorJan Hubicka <hubicka@ucw.cz>
Fri, 9 Jun 2017 11:45:46 +0000 (13:45 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 9 Jun 2017 11:45:46 +0000 (11:45 +0000)
* profile.c (edge_gcov_counts): Turn to pointer.
(compute_branch_probabilities, compute_branch_probabilities): Update.
(branch_prob): Do not clear edge_gcov_count.
* profile.h (edge_gcov_counts): Turn to pointer.
(edge_gcov_count): Update.

From-SVN: r249057

gcc/ChangeLog
gcc/profile.c

index 73bf358ec5799e4324fbd052442a3321d220d469..b5b16918642cda4170fb8280e0f9849fae08d4bc 100644 (file)
@@ -2,6 +2,7 @@
 
        * profile.c (edge_gcov_counts): Turn to pointer.
        (compute_branch_probabilities, compute_branch_probabilities): Update.
+       (branch_prob): Do not clear edge_gcov_count.
        * profile.h (edge_gcov_counts): Turn to pointer.
        (edge_gcov_count): Update.
 
index d6f2084a47d3e2cf249cac7e979fd27534c5c62f..69a2c47006f18e92f5eb4a3540d785b367533f1f 100644 (file)
@@ -1149,7 +1149,6 @@ branch_prob (void)
   for (i = 0 ; i < num_edges ; i++)
     {
       edge e = INDEX_EDGE (el, i);
-      edge_gcov_count (e) = 0;
 
       /* Mark edges we've replaced by fake edges above as ignored.  */
       if ((e->flags & (EDGE_ABNORMAL | EDGE_ABNORMAL_CALL))