]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust by absolute loop...
authorAlan Modra <amodra@bigpond.net.au>
Thu, 26 Sep 2002 23:10:38 +0000 (23:10 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Thu, 26 Sep 2002 23:10:38 +0000 (08:40 +0930)
* doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
by absolute loop increment, not loop increment.

From-SVN: r57558

gcc/ChangeLog
gcc/doloop.c

index 928a1bcc3bbb12c81f1cdb3f5b14c83889592f3f..a644fa8bf3cd24b73e670ece3d7d150e248323f0 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
+       by absolute loop increment, not loop increment.
+
 2002-09-25  David S. Miller  <davem@redhat.com>
 
        PR target/7842
index 4be8c6d05a3fa6187c2fa8023367775ff9bae5e2..06d8d5734853c384304c589829bb79aa57ec713e 100644 (file)
@@ -668,8 +668,8 @@ doloop_modify_runtime (loop, iterations_max,
            fprintf (loop_dump_stream,
                 "Doloop: Basic induction var skips initial incr.\n");
 
-         diff = expand_simple_binop (mode, PLUS, diff, increment, diff,
-                                     unsigned_p, OPTAB_LIB_WIDEN);
+         diff = expand_simple_binop (mode, PLUS, diff, GEN_INT (abs_inc),
+                                     diff, unsigned_p, OPTAB_LIB_WIDEN);
        }
     }