Commit 43a613f7 by Daniel Berlin Committed by Daniel Berlin

cfgloop.c (flow_loops_dump): Don't print out levels.

2004-12-15  Daniel Berlin  <dberlin@dberlin.org>

	* cfgloop.c (flow_loops_dump): Don't print out levels.
	(flow_loops_find): Don't set loop->levels.
	(flow_loops_level_compute): Make void.
	* cfgloop.h (struct loops): Remove levels member.
	Add comment about loops in parray possibly being NULL.

From-SVN: r92222
parent e9840398
2004-12-15 Daniel Berlin <dberlin@dberlin.org>
* cfgloop.c (flow_loops_dump): Don't print out levels.
(flow_loops_find): Don't set loop->levels.
(flow_loops_level_compute): Make void.
* cfgloop.h (struct loops): Remove levels member.
Add comment about loops in parray possibly being NULL.
2004-12-15 Alexandre Oliva <aoliva@redhat.com> 2004-12-15 Alexandre Oliva <aoliva@redhat.com>
* reload.c (SMALL_REGISTER_CLASS_P): New. * reload.c (SMALL_REGISTER_CLASS_P): New.
......
...@@ -46,7 +46,7 @@ static int flow_loop_nodes_find (basic_block, struct loop *); ...@@ -46,7 +46,7 @@ static int flow_loop_nodes_find (basic_block, struct loop *);
static void flow_loop_pre_header_scan (struct loop *); static void flow_loop_pre_header_scan (struct loop *);
static basic_block flow_loop_pre_header_find (basic_block); static basic_block flow_loop_pre_header_find (basic_block);
static int flow_loop_level_compute (struct loop *); static int flow_loop_level_compute (struct loop *);
static int flow_loops_level_compute (struct loops *); static void flow_loops_level_compute (struct loops *);
static void establish_preds (struct loop *); static void establish_preds (struct loop *);
static void canonicalize_loop_headers (void); static void canonicalize_loop_headers (void);
static bool glb_enum_p (basic_block, void *); static bool glb_enum_p (basic_block, void *);
...@@ -173,8 +173,7 @@ flow_loops_dump (const struct loops *loops, FILE *file, void (*loop_dump_aux) (c ...@@ -173,8 +173,7 @@ flow_loops_dump (const struct loops *loops, FILE *file, void (*loop_dump_aux) (c
if (! num_loops || ! file) if (! num_loops || ! file)
return; return;
fprintf (file, ";; %d loops found, %d levels\n", fprintf (file, ";; %d loops found\n", num_loops);
num_loops, loops->levels);
for (i = 0; i < num_loops; i++) for (i = 0; i < num_loops; i++)
{ {
...@@ -592,10 +591,10 @@ flow_loop_level_compute (struct loop *loop) ...@@ -592,10 +591,10 @@ flow_loop_level_compute (struct loop *loop)
hierarchy tree specified by LOOPS. Return the maximum enclosed loop hierarchy tree specified by LOOPS. Return the maximum enclosed loop
level. */ level. */
static int static void
flow_loops_level_compute (struct loops *loops) flow_loops_level_compute (struct loops *loops)
{ {
return flow_loop_level_compute (loops->tree_root); flow_loop_level_compute (loops->tree_root);
} }
/* Scan a single natural loop specified by LOOP collecting information /* Scan a single natural loop specified by LOOP collecting information
...@@ -953,7 +952,7 @@ flow_loops_find (struct loops *loops, int flags) ...@@ -953,7 +952,7 @@ flow_loops_find (struct loops *loops, int flags)
/* Assign the loop nesting depth and enclosed loop level for each /* Assign the loop nesting depth and enclosed loop level for each
loop. */ loop. */
loops->levels = flow_loops_level_compute (loops); flow_loops_level_compute (loops);
/* Scan the loops. */ /* Scan the loops. */
for (i = 1; i < num_loops; i++) for (i = 1; i < num_loops; i++)
......
...@@ -217,16 +217,16 @@ struct loops ...@@ -217,16 +217,16 @@ struct loops
/* Number of natural loops in the function. */ /* Number of natural loops in the function. */
unsigned num; unsigned num;
/* Maximum nested loop level in the function. */
unsigned levels;
/* Array of natural loop descriptors (scanning this array in reverse order /* Array of natural loop descriptors (scanning this array in reverse order
will find the inner loops before their enclosing outer loops). */ will find the inner loops before their enclosing outer loops). */
struct loop *array; struct loop *array;
/* The above array is unused in new loop infrastructure and is kept only for /* The above array is unused in new loop infrastructure and is kept only for
purposes of the old loop optimizer. Instead we store just pointers to purposes of the old loop optimizer. Instead we store just pointers to
loops here. */ loops here.
Note that a loop in this array may actually be NULL, if the loop
has been removed and the entire loops structure has not been
recomputed since that time. */
struct loop **parray; struct loop **parray;
/* Pointer to root of loop hierarchy tree. */ /* Pointer to root of loop hierarchy tree. */
......
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