reload.c (find_reloads): Emit a USE for a pseudo register without a hard register if...

�
        * reload.c (find_reloads): Emit a USE for a pseudo register without
        a hard register if we could not create an optional reload for the
        pseudo.

From-SVN: r28103
This commit is contained in:
Jeff Law 1999-07-14 16:30:24 -06:00
parent bb183b9e6b
commit 87afbee625
1 changed files with 7 additions and 2 deletions

View File

@ -3803,11 +3803,16 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
(insn_code_number < 0 ? 0
: insn_operand_strict_low[insn_code_number][i]),
1, i, operand_type[i]);
/* If a memory reference remains, yet we can't make an optional
/* If a memory reference remains (either as a MEM or a pseudo that
did not get a hard register), yet we can't make an optional
reload, check if this is actually a pseudo register reference;
we then need to emit a USE and/or a CLOBBER so that reload
inheritance will do the right thing. */
else if (replace && GET_CODE (operand) == MEM)
else if (replace
&& (GET_CODE (operand) == MEM
|| (GET_CODE (operand) == REG
&& REGNO (operand) >= FIRST_PSEUDO_REGISTER
&& reg_renumber [REGNO (operand)] < 0)))
{
operand = *recog_operand_loc[i];