X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=gcc%2Ftree-ssa-threadupdate.c;h=872de64620e63a5355fe630bead402058692bc08;hp=71a34957bdf0387e19a42a1ab00cc11eeadc7ba8;hb=28918f8e0acd0e75c39839724f8fc13c56ca580a;hpb=efbcb6defd4842cee3bc73eec195fe425457ea13 diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index 71a34957bdf..872de64620e 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -478,9 +478,10 @@ redirection_block_p (basic_block bb) gsi = gsi_start_bb (bb); while (!gsi_end_p (gsi) && (gimple_code (gsi_stmt (gsi)) == GIMPLE_LABEL + || is_gimple_debug (gsi_stmt (gsi)) || gimple_nop_p (gsi_stmt (gsi)))) gsi_next (&gsi); - + /* Check if this is an empty block. */ if (gsi_end_p (gsi)) return true; @@ -634,7 +635,6 @@ thread_single_edge (edge e) basic_block bb = e->dest; edge eto = (edge) e->aux; struct redirection_data rd; - struct local_info local_info; e->aux = NULL; @@ -656,7 +656,6 @@ thread_single_edge (edge e) /* Otherwise, we need to create a copy. */ update_bb_profile_for_threading (bb, EDGE_FREQUENCY (e), e->count, eto); - local_info.bb = bb; rd.outgoing_edge = eto; create_block_for_threading (bb, &rd); @@ -908,7 +907,7 @@ thread_through_loop_header (struct loop *loop, bool may_peel_loop_headers) else tgt_bb = split_edge (tgt_edge); } - + if (latch->aux) { /* First handle the case latch edge is redirected. */ @@ -950,7 +949,7 @@ thread_through_loop_header (struct loop *loop, bool may_peel_loop_headers) loop->header = latch->dest; loop->latch = latch->src; } - + return true; fail: