From f05d82a711d37d7958b6eda223f7afedb3eb5837 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 9 Jun 2017 13:45:46 +0200 Subject: [PATCH] profile.c (edge_gcov_counts): Turn to pointer. * 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 | 1 + gcc/profile.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 73bf358ec57..b5b16918642 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/profile.c b/gcc/profile.c index d6f2084a47d..69a2c47006f 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -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)) -- 2.30.2