Commit 8aea655f by Richard Kenner

(emit_reload_insns): When seeing if an equivalent register can have it's output reload deleted...

(emit_reload_insns): When seeing if an equivalent register can have
it's output reload deleted, check for REG_DEAD notes for reload_in
instead of calling dead_or_set_p.

From-SVN: r7339
parent 9847c2f6
...@@ -5627,7 +5627,7 @@ emit_reload_insns (insn) ...@@ -5627,7 +5627,7 @@ emit_reload_insns (insn)
&& REGNO (oldequiv) < FIRST_PSEUDO_REGISTER && REGNO (oldequiv) < FIRST_PSEUDO_REGISTER
&& spill_reg_order[REGNO (oldequiv)] >= 0 && spill_reg_order[REGNO (oldequiv)] >= 0
&& spill_reg_store[reload_spill_index[REGNO (oldequiv)]] != 0 && spill_reg_store[reload_spill_index[REGNO (oldequiv)]] != 0
&& dead_or_set_p (insn, reload_in[j]) && find_reg_note (insn, REG_DEAD, reload_in[j])
/* This is unsafe if operand occurs more than once in current /* This is unsafe if operand occurs more than once in current
insn. Perhaps some occurrences weren't reloaded. */ insn. Perhaps some occurrences weren't reloaded. */
&& count_occurrences (PATTERN (insn), reload_in[j]) == 1 && count_occurrences (PATTERN (insn), reload_in[j]) == 1
......
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