diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-10-28 13:31:53 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-10-28 13:31:53 +0000 |
commit | 71882046281f1414174fb8ff14b072e159c5a2d4 (patch) | |
tree | 0f497db2d97527ca7579bbfe5ed4c65acb24d5e8 /gcc/lambda-code.c | |
parent | 63058091fa0045a82d1777bd5046a80f920797ab (diff) | |
download | gcc-71882046281f1414174fb8ff14b072e159c5a2d4.zip gcc-71882046281f1414174fb8ff14b072e159c5a2d4.tar.gz gcc-71882046281f1414174fb8ff14b072e159c5a2d4.tar.bz2 |
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
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 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); |