aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorClinton Popetz <cpopetz@cpopetz.com>2001-07-23 12:58:29 -0400
committerClinton Popetz <cpopetz@gcc.gnu.org>2001-07-23 12:58:29 -0400
commit57de7530c4c6d768559b39634fadf5bf27475359 (patch)
tree3759bdbb278b32b2ed9053b58ebd030b88b05a29 /gcc
parentcba6dfc843af5480bba2bc7158eb70f69495f9d1 (diff)
downloadgcc-57de7530c4c6d768559b39634fadf5bf27475359.zip
gcc-57de7530c4c6d768559b39634fadf5bf27475359.tar.gz
gcc-57de7530c4c6d768559b39634fadf5bf27475359.tar.bz2
unroll.c (loop_iterations): Fix miscalculation of initial giv offset.
* unroll.c (loop_iterations): Fix miscalculation of initial giv offset. From-SVN: r44272
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/unroll.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b490839..7dede22 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 23 11:54:23 2001 Clinton Popetz <cpopetz@cpopetz.com>
+
+ * unroll.c (loop_iterations): Fix miscalculation of initial
+ giv offset.
+
2001-07-13 Andrew Haley <aph@redhat.com>
* doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
diff --git a/gcc/unroll.c b/gcc/unroll.c
index 9a09f5d..c26a297 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,