]> git.ipfire.org Git - thirdparty/gcc.git/commit
change inverted_post_order_compute to inverted_rev_post_order_compute
authorRichard Biener <rguenther@suse.de>
Fri, 21 Apr 2023 07:40:01 +0000 (09:40 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 21 Apr 2023 11:25:39 +0000 (13:25 +0200)
commit773cc925e84b248afa4ed01bf444be0935d33861
tree43e971476d0a234d968e36d4c13ceb0edb889951
parent94a04c24c33580179e51d3218f2edd2cf88cadcd
change inverted_post_order_compute to inverted_rev_post_order_compute

The following changes the inverted_post_order_compute API back to
a plain C array interface and computing a reverse post order since
that's what's always required.  It will make massaging DF to use
the correct iteration orders easier.  Elsewhere it requires turning
backward iteration over the computed order with forward iteration.

* cfganal.h (inverted_rev_post_order_compute): Rename
from ...
(inverted_post_order_compute): ... this.  Add struct function
argument, change allocation to a C array.
* cfganal.cc (inverted_rev_post_order_compute): Likewise.
* lcm.cc (compute_antinout_edge): Adjust.
* lra-lives.cc (lra_create_live_ranges_1): Likewise.
* tree-ssa-dce.cc (remove_dead_stmt): Likewise.
* tree-ssa-pre.cc (compute_antic): Likewise.
gcc/cfganal.cc
gcc/cfganal.h
gcc/lcm.cc
gcc/lra-lives.cc
gcc/tree-ssa-dce.cc
gcc/tree-ssa-pre.cc