Commit f93233bb by Jeffrey A Law Committed by Jeff Law

reload1.c (reload_combine_note_store): Second argument is no longer unused/ignored.

        * reload1.c (reload_combine_note_store): Second argument is no
        longer unused/ignored.  Handle multi-register hard regs.
        (move2add_note_store): Simplify.

From-SVN: r25124
parent 93ea10ba
Wed Feb 10 10:09:41 1999 Jeffrey A Law (law@cygnus.com)
* reload1.c (reload_combine_note_store): Second argument is no
longer unused/ignored. Handle multi-register hard regs.
(move2add_note_store): Simplify.
Wed Feb 10 10:05:23 1999 Mumit Khan <khan@xraylith.wisc.edu> Wed Feb 10 10:05:23 1999 Mumit Khan <khan@xraylith.wisc.edu>
* collect2.c (collect_execute): Remove cygwin-specific code. * collect2.c (collect_execute): Remove cygwin-specific code.
......
...@@ -9714,11 +9714,10 @@ reload_combine () ...@@ -9714,11 +9714,10 @@ reload_combine ()
/* Check if DST is a register or a subreg of a register; if it is, /* Check if DST is a register or a subreg of a register; if it is,
update reg_state[regno].store_ruid and reg_state[regno].use_index update reg_state[regno].store_ruid and reg_state[regno].use_index
accordingly. Called via note_stores from reload_combine. accordingly. Called via note_stores from reload_combine. */
The second argument, SET, is ignored. */
static void static void
reload_combine_note_store (dst, set) reload_combine_note_store (dst, set)
rtx dst, set ATTRIBUTE_UNUSED; rtx dst, set;
{ {
int regno = 0; int regno = 0;
int i; int i;
...@@ -9742,8 +9741,11 @@ reload_combine_note_store (dst, set) ...@@ -9742,8 +9741,11 @@ reload_combine_note_store (dst, set)
|| GET_CODE (SET_DEST (set)) == SIGN_EXTRACT || GET_CODE (SET_DEST (set)) == SIGN_EXTRACT
|| GET_CODE (SET_DEST (set)) == STRICT_LOW_PART) || GET_CODE (SET_DEST (set)) == STRICT_LOW_PART)
{ {
reg_state[regno].use_index = -1; for (i = size / UNITS_PER_WORD - 1 + regno; i >= regno; i--)
reg_state[regno].store_ruid = reload_combine_ruid; {
reg_state[i].use_index = -1;
reg_state[i].store_ruid = reload_combine_ruid;
}
} }
else else
{ {
...@@ -10058,21 +10060,13 @@ move2add_note_store (dst, set) ...@@ -10058,21 +10060,13 @@ move2add_note_store (dst, set)
regno += REGNO (dst); regno += REGNO (dst);
if (HARD_REGNO_NREGS (regno, mode) == 1 && GET_CODE (set) == SET) if (HARD_REGNO_NREGS (regno, mode) == 1 && GET_CODE (set) == SET
&& GET_CODE (SET_DEST (set)) != ZERO_EXTRACT
&& GET_CODE (SET_DEST (set)) != SIGN_EXTRACT
&& GET_CODE (SET_DEST (set)) != STRICT_LOW_PART)
{ {
rtx src = SET_SRC (set); rtx src = SET_SRC (set);
/* Indicate that this register has been recently written to,
but the exact contents are not available. */
if (GET_CODE (SET_DEST (set)) == ZERO_EXTRACT
|| GET_CODE (SET_DEST (set)) == SIGN_EXTRACT
|| GET_CODE (SET_DEST (set)) == STRICT_LOW_PART)
{
reg_set_luid[regno] = move2add_luid;
reg_offset[regno] = dst;
return;
}
reg_mode[regno] = mode; reg_mode[regno] = mode;
switch (GET_CODE (src)) switch (GET_CODE (src))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment