diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2005-03-07 13:56:00 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-03-07 13:56:00 +0000 |
commit | 12eff7b7bf15d868ca68ece6613d5c17ebc0c69d (patch) | |
tree | 40318d554a154beb13c6f80bd5976fb6400a0d62 /gcc/cfgbuild.c | |
parent | 6db31844ad5b459e9f5ad0e306676bba01ea589b (diff) | |
download | gcc-12eff7b7bf15d868ca68ece6613d5c17ebc0c69d.zip gcc-12eff7b7bf15d868ca68ece6613d5c17ebc0c69d.tar.gz gcc-12eff7b7bf15d868ca68ece6613d5c17ebc0c69d.tar.bz2 |
cfgbuild.c (find_sub_basic_blocks): Remove.
* cfgbuild.c (find_sub_basic_blocks): Remove.
* basic-block.h: Remove the corresponding prototype.
* cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
in comments.
* doc/cfg.texi: Don't mention find_sub_basic_blocks.
From-SVN: r96016
Diffstat (limited to 'gcc/cfgbuild.c')
-rw-r--r-- | gcc/cfgbuild.c | 44 |
1 files changed, 2 insertions, 42 deletions
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c index ac8a941..0c0e9eb 100644 --- a/gcc/cfgbuild.c +++ b/gcc/cfgbuild.c @@ -28,9 +28,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA Available functionality: - CFG construction - find_basic_blocks - - Local CFG construction - find_sub_basic_blocks */ + find_basic_blocks */ #include "config.h" #include "system.h" @@ -537,7 +535,7 @@ find_basic_blocks (rtx f) timevar_pop (TV_CFG); } -/* State of basic block as seen by find_sub_basic_blocks. */ +/* State of basic block as seen by find_many_sub_basic_blocks. */ enum state {BLOCK_NEW = 0, BLOCK_ORIGINAL, BLOCK_TO_SPLIT}; #define STATE(BB) (enum state) ((size_t) (BB)->aux) @@ -771,41 +769,3 @@ find_many_sub_basic_blocks (sbitmap blocks) FOR_EACH_BB (bb) SET_STATE (bb, 0); } - -/* Like above but for single basic block only. */ - -void -find_sub_basic_blocks (basic_block bb) -{ - basic_block min, max, b; - basic_block next = bb->next_bb; - - min = bb; - find_bb_boundaries (bb); - max = next->prev_bb; - - /* Now re-scan and wire in all edges. This expect simple (conditional) - jumps at the end of each new basic blocks. */ - make_edges (min, max, 1); - - /* Update branch probabilities. Expect only (un)conditional jumps - to be created with only the forward edges. */ - FOR_BB_BETWEEN (b, min, max->next_bb, next_bb) - { - edge e; - edge_iterator ei; - - if (b != min) - { - b->count = 0; - b->frequency = 0; - FOR_EACH_EDGE (e, ei, b->preds) - { - b->count += e->count; - b->frequency += EDGE_FREQUENCY (e); - } - } - - compute_outgoing_frequencies (b); - } -} |