Commit 5c3c320e by Jim Wilson Committed by Jim Wilson

Fix IA-64 abort compiling ping.

	* unroll.c (loop_iterations): Pass increment to extend_for_giv_value
	before passing it to fold_rtx_mult_add.

From-SVN: r36518
parent ec919c98
2000-09-18 Jim Wilson <wilson@cygnus.com> 2000-09-18 Jim Wilson <wilson@cygnus.com>
* unroll.c (loop_iterations): Pass increment to extend_for_giv_value
before passing it to fold_rtx_mult_add.
* unroll.c (final_giv_value): Pass increment through * unroll.c (final_giv_value): Pass increment through
extend_value_for_giv before passing it to emit_iv_add_mult. extend_value_for_giv before passing it to emit_iv_add_mult.
......
...@@ -3686,8 +3686,9 @@ loop_iterations (loop) ...@@ -3686,8 +3686,9 @@ loop_iterations (loop)
{ {
struct induction *biv_inc; struct induction *biv_inc;
increment increment = fold_rtx_mult_add (v->mult_val,
= fold_rtx_mult_add (v->mult_val, increment, const0_rtx, v->mode); extend_value_for_giv (v, increment),
const0_rtx, v->mode);
/* The caller assumes that one full increment has occured at the /* The caller assumes that one full increment has occured at the
first loop test. But that's not true when the biv is incremented first loop test. But that's not true when the biv is incremented
after the giv is set (which is the usual case), e.g.: after the giv is set (which is the usual case), e.g.:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment