loop.h (loop_info): New field 'vtop'.
authorMichael Hayes <m.hayes@elec.canterbury.ac.nz>
Tue, 15 Dec 1998 20:31:18 +0000 (20:31 +0000)
committerMichael Hayes <m.hayes@gcc.gnu.org>
Tue, 15 Dec 1998 20:31:18 +0000 (20:31 +0000)
commit35704c46616d00f048172abd4311521baa35044d
tree9ef0e744d566ecaef9e587914a1a553ec59e674e
parentc7dda1e388309a4fffe95c0903b1029c2669b20c
loop.h (loop_info): New field 'vtop'.

* loop.h (loop_info): New field 'vtop'.
* loop.c (check_dbra_loop):  Use loop_info->vtop rather than
scanning loop for vtop.
* unroll.c (subtract_reg_term, find_common_reg_term): New functions.
(loop_iterations): Use them to determine if loop has a constant
  number of iterations.  Set loop_info->vtop.  Don't subtract
common reg term from initial_value and final_value if have a
do-while loop.

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