doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust by absolute loop increment, not loop increment.

* doloop.c (doloop_modify_runtime <biv skips initial incr>): Adjust
	by absolute loop increment, not loop increment.

From-SVN: r57556
This commit is contained in:
Alan Modra 2002-09-26 23:01:31 +00:00 committed by Alan Modra
parent 40f0365880
commit b5a77fef8c
2 changed files with 7 additions and 2 deletions

View 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-26 Kazu Hirata <kazu@cs.umass.edu>
* c-common.h: Follow spelling conventions.

View 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);
}
}