Commit 2c9ce2ef by Richard Kenner

(emit_reload_insns): Don't update the status of a register from an

input reload if it also has an output reload.

From-SVN: r3994
parent c03b7665
...@@ -6148,11 +6148,15 @@ emit_reload_insns (insn) ...@@ -6148,11 +6148,15 @@ emit_reload_insns (insn)
} }
} }
/* Maybe the spill reg contains a copy of reload_in. */ /* Maybe the spill reg contains a copy of reload_in. Only do
something if there will not be an output reload for
the register being reloaded. */
else if (reload_out[r] == 0 else if (reload_out[r] == 0
&& reload_in[r] != 0 && reload_in[r] != 0
&& (GET_CODE (reload_in[r]) == REG && ((GET_CODE (reload_in[r]) == REG
|| GET_CODE (reload_in_reg[r]) == REG)) && ! reg_has_output_reload[REGNO (reload_in[r])]
|| (GET_CODE (reload_in_reg[r]) == REG
&& ! reg_has_output_reload[REGNO (reload_in_reg[r])]))))
{ {
register int nregno; register int nregno;
int nnr; int nnr;
......
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