aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-05-19 17:46:31 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-05-19 17:46:31 -0400
commit8aea655f0ac27163c0792269d0e1b9de5289b4cc (patch)
tree430bd44d722525253ad32df67807329f6fe7c2d5
parent9847c2f6771c42f3448fe99ef5bbc1b3499133b0 (diff)
downloadgcc-8aea655f0ac27163c0792269d0e1b9de5289b4cc.zip
gcc-8aea655f0ac27163c0792269d0e1b9de5289b4cc.tar.gz
gcc-8aea655f0ac27163c0792269d0e1b9de5289b4cc.tar.bz2
(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
-rw-r--r--gcc/reload1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index fbe5115..aed8cc4 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -5627,7 +5627,7 @@ emit_reload_insns (insn)
&& REGNO (oldequiv) < FIRST_PSEUDO_REGISTER
&& spill_reg_order[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
insn. Perhaps some occurrences weren't reloaded. */
&& count_occurrences (PATTERN (insn), reload_in[j]) == 1