public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4714] middle-end/108086 - reduce operand scanner use from inliner
@ 2022-12-15 10:32 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2022-12-15 10:32 UTC (permalink / raw)
  To: gcc-cvs

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-15 10:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-15 10:32 [gcc r13-4714] middle-end/108086 - reduce operand scanner use from inliner 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).