* unroll.c (loop_iterations): Fix miscalculation of initial
authorcpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Jul 2001 16:58:29 +0000 (16:58 +0000)
committercpopetz <cpopetz@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Jul 2001 16:58:29 +0000 (16:58 +0000)
giv offset.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44272 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/unroll.c

index b490839..7dede22 100644 (file)
@@ -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.
index 9a09f5d..c26a297 100644 (file)
@@ -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,