[PATCH] Fix accounting for num_threaded_edges
authorJeff Law <law@redhat.com>
Wed, 14 Oct 2015 17:53:46 +0000 (11:53 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 14 Oct 2015 17:53:46 +0000 (11:53 -0600)
* tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
num_threaded_edges for successful FSM threads too.

From-SVN: r228822

gcc/ChangeLog
gcc/tree-ssa-threadupdate.c

index a555d2be390be7b0ed2fa71cea849826be4fb647..7c64fa8e92e5e6acc2283ba136ae39eb93011a4e 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-14  Jeff Law  <law@redhat.com>
+
+       * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
+       num_threaded_edges for successful FSM threads too.
+
 2015-10-14  Richard Biener  <rguenther@suse.de>
 
        * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
index e426c1db9e9ee8e170cd0ee45081c564ba91d40b..5632a888e46141b077a9966bb835335617fbfa29 100644 (file)
@@ -2672,6 +2672,7 @@ thread_through_all_blocks (bool may_peel_loop_headers)
          free_dominance_info (CDI_DOMINATORS);
          bitmap_set_bit (threaded_blocks, entry->src->index);
          retval = true;
+         thread_stats.num_threaded_edges++;
        }
 
       delete_jump_thread_path (path);