From: Jim Wilson Date: Mon, 28 Sep 1992 21:21:34 +0000 (-0700) Subject: (find_splittable_givs): Pass mem_mode not mode to memory_address_p. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4024394c6fbb20caa295e33c372831866c097669;p=gcc.git (find_splittable_givs): Pass mem_mode not mode to memory_address_p. From-SVN: r2276 --- diff --git a/gcc/unroll.c b/gcc/unroll.c index 6ca4bad80e1..ae2f08f45fd 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))))