]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Fri, 27 May 2022 13:13:41 +0000 (15:13 +0200)
commit6007449a1c3bd116e431fe53d4dfe2d1c67c1076
tree09939135fd023734f529e98c34be29160b980ac5
parentc644dc6de9c27f51afd928725f0eb7199ba3e7aa
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.c (delete_insn_and_edges): Only perform search to BB_END
for non-debug insns.

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