* unroll.c (find_splittable_givs): Add missing extend_value_for_giv.

From-SVN: r74126
This commit is contained in:
Ulrich Weigand 2003-12-01 21:57:07 +00:00 committed by Ulrich Weigand
parent 28cb2b1448
commit 1bcec22314
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
* unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
2003-12-01 Roger Sayle <roger@eyesopen.com>
PR optimization/12628

View File

@ -2797,8 +2797,9 @@ find_splittable_givs (const struct loop *loop, struct iv_class *bl,
{
rtx tem = gen_reg_rtx (v->mode);
record_base_value (REGNO (tem), v->add_val, 0);
loop_iv_add_mult_hoist (loop, bl->initial_value, v->mult_val,
v->add_val, tem);
loop_iv_add_mult_hoist (loop,
extend_value_for_giv (v, bl->initial_value),
v->mult_val, v->add_val, tem);
value = tem;
}