aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgloop.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2004-12-15 21:18:42 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2004-12-15 21:18:42 +0000
commit43a613f7a264b67cdf1fadaf57315dd2374697dc (patch)
tree5135266cb38359ced5f6b85ab86297f00eac1c4e /gcc/cfgloop.c
parente9840398cdbad4b4cea71552cd74daac15f20a3e (diff)
downloadgcc-43a613f7a264b67cdf1fadaf57315dd2374697dc.zip
gcc-43a613f7a264b67cdf1fadaf57315dd2374697dc.tar.gz
gcc-43a613f7a264b67cdf1fadaf57315dd2374697dc.tar.bz2
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
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r--gcc/cfgloop.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index 303c218..26a9cde 100644
--- a/gcc/cfgloop.c
+++ b/gcc/cfgloop.c
@@ -46,7 +46,7 @@ static int flow_loop_nodes_find (basic_block, struct loop *);
static void flow_loop_pre_header_scan (struct loop *);
static basic_block flow_loop_pre_header_find (basic_block);
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 canonicalize_loop_headers (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
if (! num_loops || ! file)
return;
- fprintf (file, ";; %d loops found, %d levels\n",
- num_loops, loops->levels);
+ fprintf (file, ";; %d loops found\n", num_loops);
for (i = 0; i < num_loops; i++)
{
@@ -592,10 +591,10 @@ flow_loop_level_compute (struct loop *loop)
hierarchy tree specified by LOOPS. Return the maximum enclosed loop
level. */
-static int
+static void
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
@@ -953,7 +952,7 @@ flow_loops_find (struct loops *loops, int flags)
/* Assign the loop nesting depth and enclosed loop level for each
loop. */
- loops->levels = flow_loops_level_compute (loops);
+ flow_loops_level_compute (loops);
/* Scan the loops. */
for (i = 1; i < num_loops; i++)