From 71882046281f1414174fb8ff14b072e159c5a2d4 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 28 Oct 2004 13:31:53 +0000 Subject: lambda-code.c (nestify_update_pending_stmts): Remove. * lambda-code.c (nestify_update_pending_stmts): Remove. (perfect_nestify): Use flush_pending_stmts instead of nestify_update_pending_stmts. * tree-cfg.c (tree_make_forwarder_block): Use flush_pending_stmts. * tree-flow.h: Add a prototype for flush_pending_stmts. * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge): Use flush_pending_stmts. (lv_update_pending_stmts): Remove. (tree_ssa_loop_version): Use flush_pending_stmts instead of lv_update_pending_stmts. * tree-ssa.c (flush_pending_stmts): New. From-SVN: r89757 --- gcc/lambda-code.c | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'gcc/lambda-code.c') diff --git a/gcc/lambda-code.c b/gcc/lambda-code.c index 4ff4859..38c1fd1 100644 --- a/gcc/lambda-code.c +++ b/gcc/lambda-code.c @@ -2109,31 +2109,6 @@ perfect_nest_p (struct loop *loop) return true; } - -/* Add phi args using PENDINT_STMT list. */ - -static void -nestify_update_pending_stmts (edge e) -{ - basic_block dest; - tree phi, arg, def; - - if (!PENDING_STMT (e)) - return; - - dest = e->dest; - - for (phi = phi_nodes (dest), arg = PENDING_STMT (e); - phi; - phi = TREE_CHAIN (phi), arg = TREE_CHAIN (arg)) - { - def = TREE_VALUE (arg); - add_phi_arg (&phi, def, e); - } - - PENDING_STMT (e) = NULL; -} - /* Replace the USES of tree X in STMT with tree Y */ static void @@ -2317,7 +2292,7 @@ perfect_nestify (struct loops *loops, add_phi_arg (&phi, def, EDGE_PRED (preheaderbb, 0)); } - nestify_update_pending_stmts (e); + flush_pending_stmts (e); bodybb = create_empty_bb (EXIT_BLOCK_PTR->prev_bb); latchbb = create_empty_bb (EXIT_BLOCK_PTR->prev_bb); make_edge (headerbb, bodybb, EDGE_FALLTHRU); -- cgit v1.1