public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10763] rtl-optimization/105559 - avoid quadratic behavior in delete_insn_and_edges
@ 2022-05-27 13:15 Richard Biener
0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2022-05-27 13:15 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6007449a1c3bd116e431fe53d4dfe2d1c67c1076
commit r10-10763-g6007449a1c3bd116e431fe53d4dfe2d1c67c1076
Author: Richard Biener <rguenther@suse.de>
Date: Wed May 11 13:34:37 2022 +0200
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)
Diff:
---
gcc/cfgrtl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 33012ed06b6..9409c5b073f 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -230,7 +230,7 @@ delete_insn_and_edges (rtx_insn *insn)
{
bool purge = false;
- if (INSN_P (insn) && BLOCK_FOR_INSN (insn))
+ if (NONDEBUG_INSN_P (insn) && BLOCK_FOR_INSN (insn))
{
basic_block bb = BLOCK_FOR_INSN (insn);
if (BB_END (bb) == insn)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-27 13:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-27 13:15 [gcc r10-10763] rtl-optimization/105559 - avoid quadratic behavior in delete_insn_and_edges Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).