From 92fc4a2f399b92bf6f9ee3b50373216b01b1ca5e Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Thu, 23 Sep 2004 14:21:31 +0200 Subject: cfgloop.h (update_single_exits_after_duplication): Declare. * cfgloop.h (update_single_exits_after_duplication): Declare. (loopify, split_loop_bb): Declaration changed. * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead of rtx. (loopify): Added redirect_all_edges argument. (update_single_exits_after_duplication): Export. * loop-unswitch.c (unswitch_loop): Changed due to loopify change. * tree-flow.h (tree_duplicate_loop_to_header_edge, tree_ssa_loop_version): Declare. * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables, set_phi_def_stmts, tree_duplicate_loop_to_header_edge, lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge, lv_update_pending_stmts, tree_ssa_loop_version): New functions. * tree-ssa-loop-unswitch.c: New file. * Makefile.in (tree-ssa-loop-unswitch.o): Add. * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar. * tree-flow.h (tree_ssa_unswitch_loops): Declare. * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch. * tree-pass.h (pass_unswitch): Declare. * tree-ssa-loop.c (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch, pass_unswitch): New pass. * doc/passes.texi: Documen tree level loop unswitching. * gcc.dg/tree-ssa/loop-6.c: New test. From-SVN: r87943 --- gcc/cfgloop.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc/cfgloop.h') diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index cfa8e10..1b45a56 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -254,6 +254,8 @@ extern int flow_loop_scan (struct loop *, int); extern void flow_loop_free (struct loop *); void mark_irreducible_loops (struct loops *); void mark_single_exit_loops (struct loops *); +void update_single_exits_after_duplication (basic_block *, unsigned, + struct loop *); extern void create_loop_notes (void); /* Loop data structure manipulation/querying. */ @@ -313,10 +315,10 @@ extern struct loop * duplicate_loop (struct loops *, struct loop *, extern int duplicate_loop_to_header_edge (struct loop *, edge, struct loops *, unsigned, sbitmap, edge, edge *, unsigned *, int); -extern struct loop *loopify (struct loops *, edge, edge, basic_block); +extern struct loop *loopify (struct loops *, edge, edge, basic_block, bool); extern void unloop (struct loops *, struct loop *); extern bool remove_path (struct loops *, edge); -extern edge split_loop_bb (basic_block, rtx); +extern edge split_loop_bb (basic_block, void *); /* Induction variable analysis. */ -- cgit v1.1