* pa.c (emit_move_sequence): If in reload, call find_replacement.

From-SVN: r18812
This commit is contained in:
Richard Kenner 1998-03-24 23:53:47 +00:00 committed by Jeff Law
parent d275726b33
commit 428be70231
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Wed Mar 25 00:57:26 1998 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* pa.c (emit_move_sequence): If in reload, call find_replacement.
Tue Mar 24 10:44:11 1998 Nick Clifton <nickc@cygnus.com>
* Makefile.in (gcov$(exeext)): Support .exe extension to gcov.

View File

@ -1074,6 +1074,7 @@ emit_move_sequence (operands, mode, scratch_reg)
{
register rtx operand0 = operands[0];
register rtx operand1 = operands[1];
register rtx tem;
if (reload_in_progress && GET_CODE (operand0) == REG
&& REGNO (operand0) >= FIRST_PSEUDO_REGISTER)
@ -1097,6 +1098,15 @@ emit_move_sequence (operands, mode, scratch_reg)
operand1 = alter_subreg (operand1);
}
if (reload_in_progress && GET_CODE (operand0) == MEM
&& ((tem = find_replacement (&XEXP (operand0, 0)))
!= XEXP (operand0, 0)))
operand0 = gen_rtx (MEM, GET_MODE (operand0), tem);
if (reload_in_progress && GET_CODE (operand1) == MEM
&& ((tem = find_replacement (&XEXP (operand1, 0)))
!= XEXP (operand1, 0)))
operand1 = gen_rtx (MEM, GET_MODE (operand1), tem);
/* Handle secondary reloads for loads/stores of FP registers from
REG+D addresses where D does not fit in 5 bits, including
(subreg (mem (addr))) cases. */