diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-25 01:11:22 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-25 01:11:22 +0000 |
commit | 2c6630701996e679b15e1d495e7999c68a4b43bd (patch) | |
tree | 58a6300e6b755d51992c7ba3c862952aada55ae8 /gcc/reload.c | |
parent | 265bd3d809182a05ff8a32750e712ae8ce699b52 (diff) | |
download | gcc-2c6630701996e679b15e1d495e7999c68a4b43bd.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34150 138bc75d-0d04-0410-961f-82ee72b054a4
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 e94a3037be4..eb4302d117a 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 |