rtl-optimization/105559 - avoid quadratic behavior in delete_insn_and_edges
authorRichard Biener <rguenther@suse.de>
Wed, 11 May 2022 11:34:37 +0000 (13:34 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 11 May 2022 12:34:30 +0000 (14:34 +0200)
commit37a8220fa9188470c677abfef50c1b120c0b6c76
treeff09f026cd21161c7ae90ad9c00b88fe6c0c47c4
parent7f04b0d786e13ff5c1bd952a24fd324224415c9a
rtl-optimization/105559 - avoid quadratic behavior in delete_insn_and_edges

When the insn to delete is a debug insn there's no point in figuring
out whether it might be the last real insn and thus we have to purge
dead edges.

2022-05-11  Richard Biener  <rguenther@suse.de>

PR rtl-optimization/105559
* cfgrtl.cc (delete_insn_and_edges): Only perform search to BB_END
for non-debug insns.
gcc/cfgrtl.cc