diff options
author | Richard Biener <rguenther@suse.de> | 2022-07-07 12:59:47 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-07-07 13:22:31 +0200 |
commit | 9fc61fc8da9677db862790a6e522f1e2875096a7 (patch) | |
tree | c914bd6e75a680e2179b9ff1c05d16ecb6eb9d34 /libcpp | |
parent | 9ef714539cb7cc1cd746312fd5dcc987bf167471 (diff) | |
download | gcc-9fc61fc8da9677db862790a6e522f1e2875096a7.zip gcc-9fc61fc8da9677db862790a6e522f1e2875096a7.tar.gz gcc-9fc61fc8da9677db862790a6e522f1e2875096a7.tar.bz2 |
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.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions