diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-10 22:33:08 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-10 22:33:08 +0000 |
commit | f23d9a226033360078f2f60274c9d63ea1ee4a9c (patch) | |
tree | 18f7b1f7e2568d85e0ef50e3fa0206d1d430b5f2 /gcc/cfgbuild.c | |
parent | e1ef2dde318ee17d247ec1b85998008b2c74b549 (diff) | |
download | gcc-f23d9a226033360078f2f60274c9d63ea1ee4a9c.tar.gz |
2002-06-10 Roger Sayle <roger@eyesopen.com>
Andreas Jaeger <aj@suse.de>
* cfgrtl.c (create_basic_block_structure): Remove index argument
and use last_basic_block++ instead. (create_basic_block): Update.
* cfgbuild.c (find_basic_blocks_1): Likewise.
* cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
* haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
* sched-ebb.c (schedule_ebbs): Likewise.
* sched-rgn.c (schedule_insns): Likewise.
* ssa-ccp.c (ssa_const_prop): Likewise.
* ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
* toplev.c (rest_of_compilation): Likewise.
* config/ia64/ia64.c (ia64_reorg): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54477 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgbuild.c')
-rw-r--r-- | gcc/cfgbuild.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c index 0352fbe52a0..0c9c279a302 100644 --- a/gcc/cfgbuild.c +++ b/gcc/cfgbuild.c @@ -493,7 +493,7 @@ find_basic_blocks_1 (f) if ((GET_CODE (insn) == CODE_LABEL || GET_CODE (insn) == BARRIER) && head) { - prev = create_basic_block_structure (last_basic_block++, head, end, bb_note, prev); + prev = create_basic_block_structure (head, end, bb_note, prev); head = end = NULL_RTX; bb_note = NULL_RTX; } @@ -507,7 +507,7 @@ find_basic_blocks_1 (f) if (head && control_flow_insn_p (insn)) { - prev = create_basic_block_structure (last_basic_block++, head, end, bb_note, prev); + prev = create_basic_block_structure (head, end, bb_note, prev); head = end = NULL_RTX; bb_note = NULL_RTX; } @@ -589,7 +589,7 @@ find_basic_blocks_1 (f) } if (head != NULL_RTX) - create_basic_block_structure (last_basic_block++, head, end, bb_note, prev); + create_basic_block_structure (head, end, bb_note, prev); else if (bb_note) delete_insn (bb_note); @@ -612,7 +612,6 @@ find_basic_blocks (f, nregs, file) int nregs ATTRIBUTE_UNUSED; FILE *file ATTRIBUTE_UNUSED; { - int max_uid; basic_block bb; timevar_push (TV_CFG); @@ -653,14 +652,7 @@ find_basic_blocks (f, nregs, file) tagged directly with the basic block that it starts. It is used for more than that currently, but IMO that is the only valid use. */ - max_uid = get_max_uid (); -#ifdef AUTO_INC_DEC - /* Leave space for insns life_analysis makes in some cases for auto-inc. - These cases are rare, so we don't need too much space. */ - max_uid += max_uid / 10; -#endif - - compute_bb_for_insn (max_uid); + compute_bb_for_insn (); /* Discover the edges of our cfg. */ make_edges (label_value_list, ENTRY_BLOCK_PTR->next_bb, EXIT_BLOCK_PTR->prev_bb, 0); |