summaryrefslogtreecommitdiff
path: root/gcc/unroll.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-18 23:19:53 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-18 23:19:53 +0000
commitdeb2362f31a551925e4c47d430190431f09e732c (patch)
tree7b87382d4493ebf4cdde0fe8fd8c0c972ff87154 /gcc/unroll.c
parentd822f9e9030302e3c401ea306e7268efb0649c56 (diff)
downloadgcc-deb2362f31a551925e4c47d430190431f09e732c.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36518 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r--gcc/unroll.c5
1 files changed, 3 insertions, 2 deletions
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.: