diff options
author | Richard Biener <rguenther@suse.de> | 2022-12-15 11:30:21 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-12-15 11:32:16 +0100 |
commit | 930b3d6948f2cddc6a7fc4b35bafda1deabcd0c9 (patch) | |
tree | 9038d9662cc0419a0c676a862286bfe080847457 /gcc | |
parent | bf3ce6f84a7a994a0fc87419b383b9ce4efed442 (diff) | |
download | gcc-930b3d6948f2cddc6a7fc4b35bafda1deabcd0c9.zip gcc-930b3d6948f2cddc6a7fc4b35bafda1deabcd0c9.tar.gz gcc-930b3d6948f2cddc6a7fc4b35bafda1deabcd0c9.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/tree-inline.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/tree-inline.cc b/gcc/tree-inline.cc index 15a1a38..addfe7f 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); |