]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree-cfg.c (gimple_find_sub_bbs): Do not compute freq.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 16 Nov 2017 11:21:42 +0000 (12:21 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 16 Nov 2017 11:21:42 +0000 (11:21 +0000)
From-SVN: r254813

gcc/ChangeLog
gcc/tree-cfg.c

index 1c1944ef2129fbd927eca971c767785388f17e46..eaf4c8e97892e7ae733d63ec4c049ad8c621af2b 100644 (file)
@@ -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,
index f08a0547f0f7de1aeab8885b676774d4c6e625ef..1772185f033648b37b36d28df5abff21dc4be82c 100644 (file)
@@ -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)