* tree-ssa-loop-im.c (execute_sm_if_changed): Do not compute freq_sum.
authorJan Hubicka <hubicka@ucw.cz>
Sat, 11 Nov 2017 13:06:07 +0000 (14:06 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 11 Nov 2017 13:06:07 +0000 (13:06 +0000)
From-SVN: r254653

gcc/ChangeLog
gcc/tree-ssa-loop-im.c

index 9dc7906a888300c8c13e73f3f43c7dd8f54071bf..23f0197c6898800b294ce8a15b6a3e7ab7855975 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-10  Jan Hubicka  <hubicka@ucw.cz>
+
+       * tree-ssa-loop-im.c (execute_sm_if_changed): Do not compute freq_sum.
+
 2017-11-10  Jan Hubicka  <hubicka@ucw.cz>
 
        * predict.c (maybe_hot_frequency_p): Do not use cfun.
index 46be9440a816462b2ecd5d4ea3bf3617d95170aa..cf357cb8e2e27423c5dd04d626a2e2b5488cfba3 100644 (file)
@@ -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<basic_block>::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))