diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-28 13:31:53 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-28 13:31:53 +0000 |
commit | 44a461035a32653210a2df4ea4f1cc0630b4e537 (patch) | |
tree | 0f497db2d97527ca7579bbfe5ed4c65acb24d5e8 /gcc/lambda-code.c | |
parent | 78216f1c47589a5c550ded5698b507fb504174cd (diff) | |
download | gcc-44a461035a32653210a2df4ea4f1cc0630b4e537.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89757 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lambda-code.c')
-rw-r--r-- | gcc/lambda-code.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/gcc/lambda-code.c b/gcc/lambda-code.c index 4ff4859881f..38c1fd1f4e0 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); |