Commit 0162f155 by Richard Guenther Committed by Richard Biener

cfgloop.h (struct loops): Remove unused field array.

2006-04-24  Richard Guenther  <rguenther@suse.de>

	* cfgloop.h (struct loops): Remove unused field array.  Reorder
	state after num.
	(LOOP_PREFETCH): Remove.

From-SVN: r113217
parent 7e1584f8
2006-04-24 Richard Guenther <rguenther@suse.de> 2006-04-24 Richard Guenther <rguenther@suse.de>
* cfgloop.h (struct loops): Remove unused field array. Reorder
state after num.
(LOOP_PREFETCH): Remove.
2006-04-24 Richard Guenther <rguenther@suse.de>
PR tree-optimization/22525 PR tree-optimization/22525
* value-prof.c (tree_mod_pow2): Remove unnecessary temporary * value-prof.c (tree_mod_pow2): Remove unnecessary temporary
variable, adjust types of generated expressions. variable, adjust types of generated expressions.
......
...@@ -149,13 +149,10 @@ struct loops ...@@ -149,13 +149,10 @@ struct loops
/* Number of natural loops in the function. */ /* Number of natural loops in the function. */
unsigned num; unsigned num;
/* Array of natural loop descriptors (scanning this array in reverse order /* State of loops. */
will find the inner loops before their enclosing outer loops). */ int state;
struct loop *array;
/* The above array is unused in new loop infrastructure and is kept only for /* We store just pointers to loops here.
purposes of the old loop optimizer. Instead we store just pointers to
loops here.
Note that a loop in this array may actually be NULL, if the loop 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 has been removed and the entire loops structure has not been
recomputed since that time. */ recomputed since that time. */
...@@ -177,9 +174,6 @@ struct loops ...@@ -177,9 +174,6 @@ struct loops
/* Headers shared by multiple loops that should be merged. */ /* Headers shared by multiple loops that should be merged. */
sbitmap shared_headers; sbitmap shared_headers;
/* State of loops. */
int state;
}; };
/* The loop tree currently optimized. */ /* The loop tree currently optimized. */
...@@ -408,9 +402,4 @@ extern void doloop_optimize_loops (struct loops *); ...@@ -408,9 +402,4 @@ extern void doloop_optimize_loops (struct loops *);
extern void move_loop_invariants (struct loops *); extern void move_loop_invariants (struct loops *);
extern void record_estimate (struct loop *, tree, tree, tree); extern void record_estimate (struct loop *, tree, tree, tree);
/* Old loop optimizer interface. */
/* Flags passed to loop_optimize. */
#define LOOP_PREFETCH 1
#endif /* GCC_CFGLOOP_H */ #endif /* GCC_CFGLOOP_H */
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