* unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 1 Dec 2003 21:57:07 +0000 (21:57 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Mon, 1 Dec 2003 21:57:07 +0000 (21:57 +0000)
From-SVN: r74126

gcc/ChangeLog
gcc/unroll.c

index 778a7e7def22a4be4262a6e4e2f3b9fb743ebad8..b93d8aa9285338442f4425d1cda51d8d40ffd62e 100644 (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
index cc415a795b6376b657c8df0778d6fff7d6d400b9..518e4a1168ed8b5df4100b83548d9cedeb1e1c90 100644 (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;
                }