From 57de7530c4c6d768559b39634fadf5bf27475359 Mon Sep 17 00:00:00 2001 From: Clinton Popetz Date: Mon, 23 Jul 2001 12:58:29 -0400 Subject: [PATCH] unroll.c (loop_iterations): Fix miscalculation of initial giv offset. * unroll.c (loop_iterations): Fix miscalculation of initial giv offset. From-SVN: r44272 --- gcc/ChangeLog | 5 +++++ gcc/unroll.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b49083981f8..7dede229133 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 23 11:54:23 2001 Clinton Popetz + + * unroll.c (loop_iterations): Fix miscalculation of initial + giv offset. + 2001-07-13 Andrew Haley * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro. diff --git a/gcc/unroll.c b/gcc/unroll.c index 9a09f5d3d3e..c26a29741e5 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -3662,7 +3662,6 @@ loop_iterations (loop) if (loop_insn_first_p (v->insn, biv_inc->insn)) offset -= INTVAL (biv_inc->add_val); } - offset *= INTVAL (v->mult_val); } if (loop_dump_stream) fprintf (loop_dump_stream,