From 5c3c320ecde1b2e93dd8fed24462cc8aa8ae2bd7 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 18 Sep 2000 23:19:53 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 3 +++ gcc/unroll.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bc0633231bf..7ac43774bd9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2000-09-18 Jim Wilson + * 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 extend_value_for_giv before passing it to emit_iv_add_mult. diff --git a/gcc/unroll.c b/gcc/unroll.c index 9d9b2eaa966..115aded220e 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -3686,8 +3686,9 @@ loop_iterations (loop) { struct induction *biv_inc; - increment - = fold_rtx_mult_add (v->mult_val, increment, const0_rtx, v->mode); + increment = fold_rtx_mult_add (v->mult_val, + extend_value_for_giv (v, increment), + const0_rtx, v->mode); /* The caller assumes that one full increment has occured at the 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.: -- 2.30.2