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