aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadupdate.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2015-05-19 20:21:29 -0600
committerJeff Law <law@gcc.gnu.org>2015-05-19 20:21:29 -0600
commitc725e7f87b0e63941d2a0fcbda07d0a9c55b54f1 (patch)
tree07bdc93e34e7a7d53493dcf759afa41ebea8672a /gcc/tree-ssa-threadupdate.c
parent09b59d4de67fdf03f1263fd16ec7949dabcdebcf (diff)
downloadgcc-c725e7f87b0e63941d2a0fcbda07d0a9c55b54f1.zip
gcc-c725e7f87b0e63941d2a0fcbda07d0a9c55b54f1.tar.gz
gcc-c725e7f87b0e63941d2a0fcbda07d0a9c55b54f1.tar.bz2
tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread instead of open-coded version.
* tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread instead of open-coded version. Also delete the jump thread created within this function. From-SVN: r223431
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
-rw-r--r--gcc/tree-ssa-threadupdate.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index 0d61c18..c5b78a4 100644
--- a/gcc/tree-ssa-threadupdate.c
+++ b/gcc/tree-ssa-threadupdate.c
@@ -1647,9 +1647,7 @@ thread_single_edge (edge e)
vec<jump_thread_edge *> *path = THREAD_PATH (e);
edge eto = (*path)[1]->e;
- for (unsigned int i = 0; i < path->length (); i++)
- delete (*path)[i];
- delete path;
+ delete_jump_thread_path (path);
e->aux = NULL;
thread_stats.num_threaded_edges++;
@@ -1693,6 +1691,7 @@ thread_single_edge (edge e)
redirect_edge_and_branch (e, rd.dup_blocks[0]);
flush_pending_stmts (e);
+ delete_jump_thread_path (npath);
return rd.dup_blocks[0];
}