diff options
author | J"orn Rennecke <amylaar@cygnus.co.uk> | 2000-05-25 01:11:22 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2000-05-25 02:11:22 +0100 |
commit | db7ba7424119d53c01667af6957ca943c0cd2ff1 (patch) | |
tree | 58a6300e6b755d51992c7ba3c862952aada55ae8 /gcc/reload.c | |
parent | 04da69d3a6eeb4b9cbd3efc5473d063577e66d58 (diff) | |
download | gcc-db7ba7424119d53c01667af6957ca943c0cd2ff1.zip gcc-db7ba7424119d53c01667af6957ca943c0cd2ff1.tar.gz gcc-db7ba7424119d53c01667af6957ca943c0cd2ff1.tar.bz2 |
rtl.h (loc_mentioned_in_p): Declare.
* rtl.h (loc_mentioned_in_p): Declare.
* reload.c (loc_mentioned_in_p): Moved from here...
* rtlanal.c (loc_mentioned_in_p): to here. No longer static.
Fix loop increment for 'E' handling.
* loop.c (strength_reduce): When doing biv->giv conversion,
take multi-insn biv increments into account.
From-SVN: r34150
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index e94a303..eb4302d 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -272,7 +272,6 @@ static void find_reloads_address_part PARAMS ((rtx, rtx *, enum reg_class, static rtx find_reloads_subreg_address PARAMS ((rtx, int, int, enum reload_type, int, rtx)); static int find_inc_amount PARAMS ((rtx, rtx)); -static int loc_mentioned_in_p PARAMS ((rtx *, rtx)); extern void debug_reload_to_stream PARAMS ((FILE *)); extern void debug_reload PARAMS ((void)); @@ -1557,32 +1556,6 @@ remove_address_replacements (in_rtx) } return something_changed; } - -/* Return non-zero if IN contains a piece of rtl that has the address LOC */ -static int -loc_mentioned_in_p (loc, in) - rtx *loc, in; -{ - enum rtx_code code = GET_CODE (in); - const char *fmt = GET_RTX_FORMAT (code); - int i, j; - - for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--) - { - if (loc == &in->fld[i].rtx) - return 1; - if (fmt[i] == 'e') - { - if (loc_mentioned_in_p (loc, XEXP (in, i))) - return 1; - } - else if (fmt[i] == 'E') - for (j = XVECLEN (in, i) - 1; i >= 0; i--) - if (loc_mentioned_in_p (loc, XVECEXP (in, i, j))) - return 1; - } - return 0; -} /* If there is only one output reload, and it is not for an earlyclobber operand, try to combine it with a (logically unrelated) input reload |