]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
unroll.c (loop_iterations): Fix miscalculation of initial giv offset.
authorClinton Popetz <cpopetz@cpopetz.com>
Mon, 23 Jul 2001 16:58:29 +0000 (12:58 -0400)
committerClinton Popetz <cpopetz@gcc.gnu.org>
Mon, 23 Jul 2001 16:58:29 +0000 (12:58 -0400)
* unroll.c (loop_iterations): Fix miscalculation of initial
giv offset.

From-SVN: r44272

gcc/ChangeLog
gcc/unroll.c

index b49083981f8a790a34e33f61a5a888ec95814352..7dede2291331d7bfaf9000a8c2d7c841531c1783 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 9a09f5d3d3e08cde131f68f7044e4ce8f6b692de..c26a29741e5f9a28cda21621c8dbea752c656a1d 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,