summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-01 21:57:07 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-01 21:57:07 +0000
commit8a7ca02e29afd4ac1464bd314a4f53e8bad2cbd1 (patch)
tree0ec3098c713be93f771a05ac8b62798832281df7
parenta66cff91ecc1857e21bbcc2512c55508cfdd0902 (diff)
downloadppe42-gcc-8a7ca02e29afd4ac1464bd314a4f53e8bad2cbd1.tar.gz
ppe42-gcc-8a7ca02e29afd4ac1464bd314a4f53e8bad2cbd1.zip
* unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74126 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/unroll.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 778a7e7def2..b93d8aa9285 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/unroll.c b/gcc/unroll.c
index cc415a795b6..518e4a1168e 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -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;
}
OpenPOWER on IntegriCloud