Commit 086fef9e by Alexandre Oliva Committed by Alexandre Oliva

reload1.c (replace_pseudos_in_call_usage): Use reg_equiv_constant and…

reload1.c (replace_pseudos_in_call_usage): Use reg_equiv_constant and reg_equiv_address, and don't try regno_reg_rtx first.

* reload1.c (replace_pseudos_in_call_usage): Use
reg_equiv_constant and reg_equiv_address, and don't try
regno_reg_rtx first.

From-SVN: r38991
parent ca79429a
2001-01-13 Alexandre Oliva <aoliva@redhat.com>
* reload1.c (replace_pseudos_in_call_usage): Use
reg_equiv_constant and reg_equiv_address, and don't try
regno_reg_rtx first.
2001-01-13 Richard Henderson <rth@redhat.com> 2001-01-13 Richard Henderson <rth@redhat.com>
* ggc-page.c (alloc_page): Round up allocation size to one page. * ggc-page.c (alloc_page): Round up allocation size to one page.
......
...@@ -601,7 +601,9 @@ replace_pseudos_in_call_usage (loc, mem_mode, usage) ...@@ -601,7 +601,9 @@ replace_pseudos_in_call_usage (loc, mem_mode, usage)
code = GET_CODE (x); code = GET_CODE (x);
if (code == REG) if (code == REG)
{ {
if (REGNO (x) < FIRST_PSEUDO_REGISTER) int regno = REGNO (x);
if (regno < FIRST_PSEUDO_REGISTER)
return; return;
x = eliminate_regs (x, mem_mode, usage); x = eliminate_regs (x, mem_mode, usage);
...@@ -612,10 +614,15 @@ replace_pseudos_in_call_usage (loc, mem_mode, usage) ...@@ -612,10 +614,15 @@ replace_pseudos_in_call_usage (loc, mem_mode, usage)
return; return;
} }
if (reg_renumber [REGNO (x)] < 0) if (reg_equiv_constant[regno])
*loc = regno_reg_rtx[REGNO (x)]; *loc = reg_equiv_constant[regno];
else if (reg_equiv_mem[REGNO (x)]) else if (reg_equiv_mem[regno])
*loc = reg_equiv_mem[REGNO (x)]; *loc = reg_equiv_mem[regno];
else if (reg_equiv_address[regno])
*loc = gen_rtx_MEM (GET_MODE (x), reg_equiv_address[regno]);
else if (GET_CODE (regno_reg_rtx[regno]) != REG
|| REGNO (regno_reg_rtx[regno]) != regno)
*loc = regno_reg_rtx[regno];
else else
abort (); abort ();
......
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