Commit 25a6c68b by Kazu Hirata Committed by Kazu Hirata

cfgloopmanip.c (update_single_exits_after_duplication, unloop): Make them static.

	* cfgloopmanip.c (update_single_exits_after_duplication,
	unloop): Make them static.
	* cfgloop.h: Remove the corresponding prototypes.

From-SVN: r90503
parent a5d3e50d
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
* cfglayout.c (choose_inner_scope): Make it static. * cfglayout.c (choose_inner_scope): Make it static.
* rtl.h: Remove the corresponding prototype. * rtl.h: Remove the corresponding prototype.
* cfgloopmanip.c (update_single_exits_after_duplication,
unloop): Make them static.
* cfgloop.h: Remove the corresponding prototypes.
2004-11-11 Kazu Hirata <kazu@cs.umass.edu> 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
* function.c (expand_function_end): Remove an "if" statement * function.c (expand_function_end): Remove an "if" statement
......
...@@ -274,8 +274,6 @@ extern int flow_loop_scan (struct loop *, int); ...@@ -274,8 +274,6 @@ extern int flow_loop_scan (struct loop *, int);
extern void flow_loop_free (struct loop *); extern void flow_loop_free (struct loop *);
void mark_irreducible_loops (struct loops *); void mark_irreducible_loops (struct loops *);
void mark_single_exit_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); extern void create_loop_notes (void);
/* Loop data structure manipulation/querying. */ /* Loop data structure manipulation/querying. */
...@@ -337,7 +335,6 @@ extern int duplicate_loop_to_header_edge (struct loop *, edge, struct loops *, ...@@ -337,7 +335,6 @@ extern int duplicate_loop_to_header_edge (struct loop *, edge, struct loops *,
unsigned *, int); unsigned *, int);
extern struct loop *loopify (struct loops *, edge, edge, extern struct loop *loopify (struct loops *, edge, edge,
basic_block, edge, edge, bool); basic_block, edge, edge, bool);
extern void unloop (struct loops *, struct loop *);
extern bool remove_path (struct loops *, edge); extern bool remove_path (struct loops *, edge);
extern edge split_loop_bb (basic_block, void *); extern edge split_loop_bb (basic_block, void *);
......
...@@ -47,6 +47,7 @@ static void scale_loop_frequencies (struct loop *, int, int); ...@@ -47,6 +47,7 @@ static void scale_loop_frequencies (struct loop *, int, int);
static void scale_bbs_frequencies (basic_block *, int, int, int); static void scale_bbs_frequencies (basic_block *, int, int, int);
static basic_block create_preheader (struct loop *, int); static basic_block create_preheader (struct loop *, int);
static void fix_irreducible_loops (basic_block); static void fix_irreducible_loops (basic_block);
static void unloop (struct loops *, struct loop *);
#define RDIV(X,Y) (((X) + (Y) / 2) / (Y)) #define RDIV(X,Y) (((X) + (Y) / 2) / (Y))
...@@ -582,7 +583,7 @@ loopify (struct loops *loops, edge latch_edge, edge header_edge, ...@@ -582,7 +583,7 @@ loopify (struct loops *loops, edge latch_edge, edge header_edge,
/* Remove the latch edge of a LOOP and update LOOPS tree to indicate that /* Remove the latch edge of a LOOP and update LOOPS tree to indicate that
the LOOP was removed. After this function, original loop latch will the LOOP was removed. After this function, original loop latch will
have no successor, which caller is expected to fix somehow. */ have no successor, which caller is expected to fix somehow. */
void static void
unloop (struct loops *loops, struct loop *loop) unloop (struct loops *loops, struct loop *loop)
{ {
basic_block *body; basic_block *body;
...@@ -822,7 +823,7 @@ can_duplicate_loop_p (struct loop *loop) ...@@ -822,7 +823,7 @@ can_duplicate_loop_p (struct loop *loop)
/* The NBBS blocks in BBS will get duplicated and the copies will be placed /* The NBBS blocks in BBS will get duplicated and the copies will be placed
to LOOP. Update the single_exit information in superloops of LOOP. */ to LOOP. Update the single_exit information in superloops of LOOP. */
void static void
update_single_exits_after_duplication (basic_block *bbs, unsigned nbbs, update_single_exits_after_duplication (basic_block *bbs, unsigned nbbs,
struct loop *loop) struct loop *loop)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment