Re: [PATCH] Fix -fcompare-debug issue in delete_insn_and_edges [PR94618]

2020-04-17 Thread Richard Biener
On Fri, 17 Apr 2020, Jakub Jelinek wrote: > Hi! > > delete_insn_and_edges calls purge_dead_edges whenever deleting the last insn > in a bb, whatever it is. If it called it only for mandatory last insns > in the basic block (that may not be followed by DEBUG_INSNs, dunno if that > is control_flow

[PATCH] Fix -fcompare-debug issue in delete_insn_and_edges [PR94618]

2020-04-17 Thread Jakub Jelinek via Gcc-patches
Hi! delete_insn_and_edges calls purge_dead_edges whenever deleting the last insn in a bb, whatever it is. If it called it only for mandatory last insns in the basic block (that may not be followed by DEBUG_INSNs, dunno if that is control_flow_insn_p or something more complex), that wouldn't be a