Speedup update-ssa some more
commit9fc61fc8da9677db862790a6e522f1e2875096a7
authorRichard Biener <rguenther@suse.de>
Thu, 7 Jul 2022 10:59:47 +0000 (7 12:59 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 7 Jul 2022 11:22:31 +0000 (7 13:22 +0200)
treec914bd6e75a680e2179b9ff1c05d16ecb6eb9d34
parent9ef714539cb7cc1cd746312fd5dcc987bf167471
Speedup update-ssa some more

The following avoids copying an sbitmap and one traversal by avoiding
to re-allocate old_ssa_names when not necessary.  In addition this
actually checks what the comment before PHI insert iterating promises,
that the old_ssa_names set does not grow.

* tree-into-ssa.cc (iterating_old_ssa_names): New.
(add_new_name_mapping): Grow {new,old}_ssa_names separately
and only when actually needed.  Assert we are not growing
the old_ssa_names set when iterating over it.
(update_ssa): Remove old_ssa_names copying and empty_p
query, note we are iterating over it and expect no set changes.
gcc/tree-into-ssa.cc