aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1999-02-24 11:50:54 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>1999-02-24 11:50:54 +0000
commitc99f8c2a3e3a5a81f3bec3c1fd3a080343bd57d1 (patch)
treed564513348fedddafc05c01c247a96bf31e2b04b /gcc/loop.c
parentddce352881f2a8fcea7e43d6e0354b5d03e1874e (diff)
downloadgcc-c99f8c2a3e3a5a81f3bec3c1fd3a080343bd57d1.zip
gcc-c99f8c2a3e3a5a81f3bec3c1fd3a080343bd57d1.tar.gz
gcc-c99f8c2a3e3a5a81f3bec3c1fd3a080343bd57d1.tar.bz2
loop.h (loop_insn_first_p): Declare.
* loop.h (loop_insn_first_p): Declare. * loop.c (loop_insn_first_p): No longer static. * unroll.c (iteration_info) Fix comparison to reg_iv_type->num_elements. Before accessing reg_biv_class, check index against max_reg_before_loop. Fix and enable code for giv iterators. (loop_iterations): Compare with reg_iv_type->num_elements instead of with max_reg_before_loop. From-SVN: r25401
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index cd77cdd..f658933 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -376,8 +376,6 @@ static int indirect_jump_in_function_p PROTO((rtx));
static int compute_luids PROTO((rtx, rtx, int));
-static int loop_insn_first_p PROTO((rtx, rtx));
-
static int biv_elimination_giv_has_0_offset PROTO((struct induction *,
struct induction *, rtx));
@@ -8112,7 +8110,7 @@ maybe_eliminate_biv (bl, loop_start, end, eliminate_p, threshold, insn_count)
This is like insn_first_p, except that we use the luid information if
available. */
-static int
+int
loop_insn_first_p (insn, reference)
rtx insn, reference;
{