aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2015-10-14 11:53:46 -0600
committerJeff Law <law@gcc.gnu.org>2015-10-14 11:53:46 -0600
commit41fd0dc65045126da6e435f8136a0faf3a0bdb14 (patch)
treec80ab54b539c341af0019cd548d1ae1e16099f5d /gcc
parentbb1125df5370b6e29ddf9cb85b8c41a828796eee (diff)
downloadgcc-41fd0dc65045126da6e435f8136a0faf3a0bdb14.zip
gcc-41fd0dc65045126da6e435f8136a0faf3a0bdb14.tar.gz
gcc-41fd0dc65045126da6e435f8136a0faf3a0bdb14.tar.bz2
[PATCH] Fix accounting for num_threaded_edges
* tree-ssa-threadupdate.c (thread_through_all_blocks): Bump num_threaded_edges for successful FSM threads too. From-SVN: r228822
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-threadupdate.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a555d2b..7c64fa8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index e426c1d..5632a88 100644
--- a/gcc/tree-ssa-threadupdate.c
+++ b/gcc/tree-ssa-threadupdate.c
@@ -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);