From 8e43e9cd6064351db0015596cdafc225b75d975f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 16 Nov 2017 12:21:42 +0100 Subject: [PATCH] * tree-cfg.c (gimple_find_sub_bbs): Do not compute freq. From-SVN: r254813 --- gcc/ChangeLog | 4 ++++ gcc/tree-cfg.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c1944ef212..eaf4c8e9789 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-16 Jan Hubicka + + * tree-cfg.c (gimple_find_sub_bbs): Do not compute freq. + 2017-11-14 Jan Hubicka * cfg.c (scale_bbs_frequencies_int, diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index f08a0547f0f..1772185f033 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -1050,7 +1050,6 @@ gimple_find_sub_bbs (gimple_seq seq, gimple_stmt_iterator *gsi) { struct omp_region *cur_region = NULL; profile_count cnt = profile_count::zero (); - int freq = 0; bool all = true; int cur_omp_region_idx = 0; @@ -1066,7 +1065,6 @@ gimple_find_sub_bbs (gimple_seq seq, gimple_stmt_iterator *gsi) cnt += e->count (); else all = false; - freq += EDGE_FREQUENCY (e); } tree_guess_outgoing_edge_probabilities (bb); if (all || profile_status_for_fn (cfun) == PROFILE_READ) -- 2.30.2