Commit d02089a5 by Richard Kenner

(distribute_notes): Delete instructions without side effect that set a

subreg of an unused register.

From-SVN: r10491
parent 089a0f39
...@@ -10745,7 +10745,10 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1) ...@@ -10745,7 +10745,10 @@ distribute_notes (notes, from_insn, i3, i2, elim_i2, elim_i1)
modified the register. */ modified the register. */
if (set != 0 && ! side_effects_p (SET_SRC (set)) if (set != 0 && ! side_effects_p (SET_SRC (set))
&& rtx_equal_p (XEXP (note, 0), SET_DEST (set))) && (rtx_equal_p (XEXP (note, 0), SET_DEST (set))
|| (GET_CODE (SET_DEST (set)) == SUBREG
&& rtx_equal_p (XEXP (note, 0),
XEXP (SET_DEST (set), 0)))))
{ {
/* Move the notes and links of TEM elsewhere. /* Move the notes and links of TEM elsewhere.
This might delete other dead insns recursively. This might delete other dead insns recursively.
......
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