diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/tree-cfg.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c1944e..eaf4c8e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-16 Jan Hubicka <hubicka@ucw.cz> + + * tree-cfg.c (gimple_find_sub_bbs): Do not compute freq. + 2017-11-14 Jan Hubicka <hubicka@ucw.cz> * cfg.c (scale_bbs_frequencies_int, diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index f08a054..1772185 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) |