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>
Thu, 19 May 2022 11:58:50 +0000 (13:58 +0200)
commit2a040e982945a5795081e81be35094b604d596d3
treec80e5642a203dab1f8600d52b9020b64b6247ad9
parenta53eff4ad05f234a509dd2995d5a7612d5baa4e8
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.

(cherry picked from commit 37a8220fa9188470c677abfef50c1b120c0b6c76)
gcc/cfgrtl.cc