loop.h (struct loop_info): Define new structure.
authorMichael Hayes <m.hayes@elec.canterbury.ac.nz>
Wed, 25 Nov 1998 21:19:21 +0000 (21:19 +0000)
committerMichael Hayes <m.hayes@gcc.gnu.org>
Wed, 25 Nov 1998 21:19:21 +0000 (21:19 +0000)
commit302670f3f00ef8b555278b4216e3c1e1544352c2
treebcc06470760eed2be6d81b571ebe62b1538aca25
parenta70603680e368c79db0f0b3f7ea2bd792f0d9b6d
loop.h (struct loop_info): Define new structure.

* loop.h (struct loop_info): Define new structure.
(precondition_loop_p): Added prototype.
(unroll_loop): Added new argument loop_info to prototype.
(final_biv_value, final_giv_value): Added new argument n_iterations
to prototype.
* loop.c (strength_reduce): Declare new structure loop_iteration_info
and new pointer loop_info.
(loop_n_iterations): Replace global variable by element in
loop_info structure.
(check_final_value): New argument n_iterations.
(insert_bct): New argument loop_info.
(loop_unroll_factor): Replace global array by element in
loop_info structure.
(loop_optimize): Remove code to allocate and initialise
loop_unroll_factor_array.
* unroll.c (precondition_loop_p):  No longer static since
used by branch on count optimization.
(precondition_loop_p, unroll_loop): New argument loop_info.
(final_biv_value, final_giv_value, find_splittable_regs): New
argument n_iterations.
(loop_iteration_var, loop_initial_value, loop_increment,
loop_final_value, loop_comparison_code, loop_unroll_factor):
Replaced global variables by loop_info structure.
(loop_unroll_factor): Replace global array by element in
loop_info structure.

From-SVN: r23884
gcc/ChangeLog
gcc/loop.c
gcc/loop.h
gcc/unroll.c