summaryrefslogtreecommitdiff
path: root/gcc/cfgbuild.c
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-07 13:56:00 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-07 13:56:00 +0000
commit794d8e3faf33ddd243374fb75a118aef11177671 (patch)
tree40318d554a154beb13c6f80bd5976fb6400a0d62 /gcc/cfgbuild.c
parent3d5df0d14549d28ddd2443cd2ee706956dac92c2 (diff)
downloadgcc-794d8e3faf33ddd243374fb75a118aef11177671.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96016 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgbuild.c')
-rw-r--r--gcc/cfgbuild.c44
1 files changed, 2 insertions, 42 deletions
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c
index ac8a941452e..0c0e9ebbc3f 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);
- }
-}