Re: [PATCH] rtl-ssa: Don't leave NOTE_INSN_DELETED around

2023-10-20 Thread Richard Sandiford
Alex Coplan writes: > Hi, > > This patch tweaks change_insns to also call ::remove_insn to ensure the > underlying RTL insn gets removed from the insn chain in the case of a > deletion. > > This avoids leaving NOTE_INSN_DELETED around after deleting insns. > > For movement, the RTL insn chain is u

[PATCH] rtl-ssa: Don't leave NOTE_INSN_DELETED around

2023-10-20 Thread Alex Coplan
Hi, This patch tweaks change_insns to also call ::remove_insn to ensure the underlying RTL insn gets removed from the insn chain in the case of a deletion. This avoids leaving NOTE_INSN_DELETED around after deleting insns. For movement, the RTL insn chain is updated earlier in change_insns with