aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1999-02-06 10:08:51 +0000
committerJeff Law <law@gcc.gnu.org>1999-02-06 03:08:51 -0700
commit8318490b1ebf6bce70a5ee7754c489aae228d945 (patch)
tree8a4fe0b6462bc893be59144efa432a63614a626b
parent54ca6ffa139060575be8487db82d2cb551638eb5 (diff)
downloadgcc-8318490b1ebf6bce70a5ee7754c489aae228d945.zip
gcc-8318490b1ebf6bce70a5ee7754c489aae228d945.tar.gz
gcc-8318490b1ebf6bce70a5ee7754c489aae228d945.tar.bz2
unroll.c (find_splittable_givs): After express_from, call replace_rtx to convert dest_reg to new_reg.
* unroll.c (find_splittable_givs): After express_from, call replace_rtx to convert dest_reg to new_reg. From-SVN: r25056
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/unroll.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a2439de..30ff75e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Sat Feb 6 11:04:08 1999 Jim Wilson <wilson@cygnus.com>
+
+ * unroll.c (find_splittable_givs): After express_from, call replace_rtx
+ to convert dest_reg to new_reg.
+
Sat Feb 6 10:31:35 1999 Jeffrey A Law (law@cygnus.com)
* reload1.c (reload_combine_note_store): Be more careful with
diff --git a/gcc/unroll.c b/gcc/unroll.c
index bb5770d..8737544 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -2900,7 +2900,7 @@ find_splittable_givs (bl, unroll_type, loop_start, loop_end, increment,
copy_loop_body works around the problem for the
DEST_REG givs themselves, but it can't handle
DEST_ADDR givs that have been combined with
- derived a derived DEST_REG giv.
+ a derived DEST_REG giv.
So Handle V as if the giv from which V->SAME has
been derived has been combined with V.
recombine_givs only derives givs from givs that
@@ -2909,6 +2909,8 @@ find_splittable_givs (bl, unroll_type, loop_start, loop_end, increment,
same = same->derived_from;
new_reg = express_from (same, v);
+ new_reg = replace_rtx (new_reg, same->dest_reg,
+ same->new_reg);
}
/* If the address giv has a constant in its new_reg value,
@@ -3025,6 +3027,8 @@ find_splittable_givs (bl, unroll_type, loop_start, loop_end, increment,
v->same = v->same->derived_from;
v->new_reg = express_from (v->same, v);
+ v->new_reg = replace_rtx (v->new_reg, v->same->dest_reg,
+ v->same->new_reg);
}
}