From: Jan Hubicka Date: Sat, 11 Nov 2017 13:06:07 +0000 (+0100) Subject: * tree-ssa-loop-im.c (execute_sm_if_changed): Do not compute freq_sum. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90b2566bdf74da880b923459f1d5580e5dd3b99d;p=gcc.git * tree-ssa-loop-im.c (execute_sm_if_changed): Do not compute freq_sum. From-SVN: r254653 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9dc7906a888..23f0197c689 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-10 Jan Hubicka + + * tree-ssa-loop-im.c (execute_sm_if_changed): Do not compute freq_sum. + 2017-11-10 Jan Hubicka * predict.c (maybe_hot_frequency_p): Do not use cfun. diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c index 46be9440a81..cf357cb8e2e 100644 --- a/gcc/tree-ssa-loop-im.c +++ b/gcc/tree-ssa-loop-im.c @@ -1781,7 +1781,6 @@ execute_sm_if_changed (edge ex, tree mem, tree tmp_var, tree flag, struct prev_flag_edges *prev_edges = (struct prev_flag_edges *) ex->aux; bool irr = ex->flags & EDGE_IRREDUCIBLE_LOOP; - int freq_sum = 0; profile_count count_sum = profile_count::zero (); int nbbs = 0, ncount = 0; profile_probability flag_probability = profile_probability::uninitialized (); @@ -1803,7 +1802,6 @@ execute_sm_if_changed (edge ex, tree mem, tree tmp_var, tree flag, for (hash_set::iterator it = flag_bbs->begin (); it != flag_bbs->end (); ++it) { - freq_sum += (*it)->count.to_frequency (cfun); if ((*it)->count.initialized_p ()) count_sum += (*it)->count, ncount ++; if (dominated_by_p (CDI_DOMINATORS, ex->src, *it))