aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1992-09-28 14:21:34 -0700
committerJim Wilson <wilson@gcc.gnu.org>1992-09-28 14:21:34 -0700
commit4024394c6fbb20caa295e33c372831866c097669 (patch)
tree1b90199e8aa4adc4d3b09826983196b006ec1ab6 /gcc
parent57467646666ba0d8790a9fdc3e35390b5bf1dade (diff)
downloadgcc-4024394c6fbb20caa295e33c372831866c097669.zip
gcc-4024394c6fbb20caa295e33c372831866c097669.tar.gz
gcc-4024394c6fbb20caa295e33c372831866c097669.tar.bz2
(find_splittable_givs): Pass mem_mode not mode to memory_address_p.
From-SVN: r2276
Diffstat (limited to 'gcc')
-rw-r--r--gcc/unroll.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c
index 6ca4bad..ae2f08f 100644
--- a/gcc/unroll.c
+++ b/gcc/unroll.c
@@ -2536,8 +2536,8 @@ find_splittable_givs (bl, unroll_type, loop_start, loop_end, increment,
Try to validate both the first and the last
address resulting from loop unrolling, if
one fails, then can't do const elim here. */
- if (memory_address_p (v->mode, v->dest_reg)
- && memory_address_p (v->mode,
+ if (memory_address_p (v->mem_mode, v->dest_reg)
+ && memory_address_p (v->mem_mode,
plus_constant (v->dest_reg,
INTVAL (giv_inc)
* (unroll_number - 1))))
@@ -2563,8 +2563,8 @@ find_splittable_givs (bl, unroll_type, loop_start, loop_end, increment,
now, and fail completely if either the first or the last
unrolled copy of the address is not a valid address. */
if (v->dest_reg == tem
- && (! memory_address_p (v->mode, v->dest_reg)
- || ! memory_address_p (v->mode,
+ && (! memory_address_p (v->mem_mode, v->dest_reg)
+ || ! memory_address_p (v->mem_mode,
plus_constant (v->dest_reg,
INTVAL (giv_inc)
* (unroll_number -1)))))
@@ -2600,8 +2600,8 @@ find_splittable_givs (bl, unroll_type, loop_start, loop_end, increment,
/* Check the resulting address for validity, and fail
if the resulting address would be illegal. */
- if (! memory_address_p (v->mode, v->dest_reg)
- || ! memory_address_p (v->mode,
+ if (! memory_address_p (v->mem_mode, v->dest_reg)
+ || ! memory_address_p (v->mem_mode,
plus_constant (v->dest_reg,
INTVAL (giv_inc) *
(unroll_number -1))))