From c725e7f87b0e63941d2a0fcbda07d0a9c55b54f1 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 19 May 2015 20:21:29 -0600 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-threadupdate.c | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 95326a3f5aa..95114fa00a4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-20 Jeff Law + + * 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. + 2015-05-20 Alan Modra * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index 0d61c1860ef..c5b78a4629a 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -1647,9 +1647,7 @@ thread_single_edge (edge e) vec *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]; } -- 2.30.2