diff options
author | Richard Biener <rguenther@suse.de> | 2024-08-26 13:21:57 +0200 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-08-26 14:42:16 +0200 |
commit | 03b802e14f497e393e6437b7df5be1c690ddf1df (patch) | |
tree | 95a78d587b7262b5c2c41d7f81a4af75859f6143 /libcpp/files.cc | |
parent | d3e71b99194bff878d3bf3b35f9528a350d10df9 (diff) | |
download | gcc-03b802e14f497e393e6437b7df5be1c690ddf1df.zip gcc-03b802e14f497e393e6437b7df5be1c690ddf1df.tar.gz gcc-03b802e14f497e393e6437b7df5be1c690ddf1df.tar.bz2 |
Delay edge removal in forwprop
SSA forwprop has switch simplification code that calls remove edge
and as side-effect releases dominator info. For a followup we want
to retain that so the following delays removing edges until the end
of the pass. As usual we have to deal with parts of the edge
vanishing due to EH/abnormal pruning so record edges as basic-block
index pairs and remove them only when they are still there.
* tree-ssa-forwprop.cc (simplify_gimple_switch_label_vec):
Delay removing edges and releasing dominator info, instead
record into edges_to_remove vector.
(simplify_gimple_switch): Pass through vector of to remove
edges.
(pass_forwprop::execute): Likewise. Remove queued edges.
Diffstat (limited to 'libcpp/files.cc')
0 files changed, 0 insertions, 0 deletions