]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid computing RPO for update_ssa
authorRichard Biener <rguenther@suse.de>
Wed, 29 Jun 2022 12:55:43 +0000 (14:55 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 30 Jun 2022 08:39:09 +0000 (10:39 +0200)
commitaea329432b8e405668861bbe0cd2662a80508c45
tree19a869a65d1062f7bab9be2fbd2efbc45d501ef1
parent721aa2cc44d143e49a704bc8238b3d0d5f750a49
Avoid computing RPO for update_ssa

At some point when domwalk got the ability to use RPO for ordering
dominator children we carefully avoided update_ssa eating the cost
of RPO compute.  Unfortunately some later consolidation of CTORs
lost this again so the following makes this explicit via a special
value to the bb_index_to_rpo argument of domwalk, speeding up
update_ssa again.

* domwalk.h (dom_walker::dom_walker): Update comment to
reflect reality and new special argument value for
bb_index_to_rpo.
* domwalk.cc (dom_walker::dom_walker): Recognize -1
bb_index_to_rpo.
* tree-into-ssa.cc
(rewrite_update_dom_walker::rewrite_update_dom_walker): Tell
dom_walker to not use RPO.
gcc/domwalk.cc
gcc/domwalk.h
gcc/tree-into-ssa.cc