public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Richard Biener <rguenth@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4714] middle-end/108086 - reduce operand scanner use from inliner Date: Thu, 15 Dec 2022 10:32:37 +0000 (GMT) [thread overview] Message-ID: <20221215103237.2A382388C5E3@sourceware.org> (raw) https://gcc.gnu.org/g:930b3d6948f2cddc6a7fc4b35bafda1deabcd0c9 commit r13-4714-g930b3d6948f2cddc6a7fc4b35bafda1deabcd0c9 Author: Richard Biener <rguenther@suse.de> Date: Thu Dec 15 11:30:21 2022 +0100 middle-end/108086 - reduce operand scanner use from inliner The following avoids a redundant second operand scan on all stmts during inlining which shows with PR108086. PR middle-end/108086 * tree-inline.cc (copy_edges_for_bb): Do not update all stmts again. Diff: --- gcc/tree-inline.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gcc/tree-inline.cc b/gcc/tree-inline.cc index 15a1a389493..addfe7fcbcc 100644 --- a/gcc/tree-inline.cc +++ b/gcc/tree-inline.cc @@ -2571,12 +2571,8 @@ copy_edges_for_bb (basic_block bb, profile_count num, profile_count den, for (si = gsi_start_bb (new_bb); !gsi_end_p (si);) { - gimple *copy_stmt; bool can_throw, nonlocal_goto; - - copy_stmt = gsi_stmt (si); - if (!is_gimple_debug (copy_stmt)) - update_stmt (copy_stmt); + gimple *copy_stmt = gsi_stmt (si); /* Do this before the possible split_block. */ gsi_next (&si);
reply other threads:[~2022-12-15 10:32 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221215103237.2A382388C5E3@sourceware.org \ --to=rguenth@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).