diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2007-05-26 15:16:45 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2007-05-26 15:16:45 +0000 |
commit | eb83419390c399dc12a359eae856a5963216a450 (patch) | |
tree | 691997a71d38ce09adc119a49e9d096ec3b9cd78 | |
parent | e5ac0b9bceadbaf799f72e80c84902e2dafb44f9 (diff) | |
download | gcc-eb83419390c399dc12a359eae856a5963216a450.zip gcc-eb83419390c399dc12a359eae856a5963216a450.tar.gz gcc-eb83419390c399dc12a359eae856a5963216a450.tar.bz2 |
basic-block.h: Remove the prototype for merge_seq_blocks.
* basic-block.h: Remove the prototype for merge_seq_blocks.
* cfgcleanup.c (merge_seq_blocks): Remove.
From-SVN: r125094
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/basic-block.h | 1 | ||||
-rw-r--r-- | gcc/cfgcleanup.c | 25 |
3 files changed, 5 insertions, 26 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cdd0b84..d30b21b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-05-26 Kazu Hirata <kazu@codesourcery.com> + + * basic-block.h: Remove the prototype for merge_seq_blocks. + * cfgcleanup.c (merge_seq_blocks): Remove. + 2007-05-26 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New. diff --git a/gcc/basic-block.h b/gcc/basic-block.h index ce0aba0..dd3bc1a 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -919,7 +919,6 @@ extern void free_aux_for_edges (void); extern void find_basic_blocks (rtx); extern bool cleanup_cfg (int); extern bool delete_unreachable_blocks (void); -extern bool merge_seq_blocks (void); extern bool mark_dfs_back_edges (void); extern void set_edge_can_fallthru_flag (void); diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index d273843..54d2321 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -2166,31 +2166,6 @@ delete_unreachable_blocks (void) tidy_fallthru_edges (); return changed; } - -/* Merges sequential blocks if possible. */ - -bool -merge_seq_blocks (void) -{ - basic_block bb; - bool changed = false; - - for (bb = ENTRY_BLOCK_PTR->next_bb; bb != EXIT_BLOCK_PTR; ) - { - if (single_succ_p (bb) - && can_merge_blocks_p (bb, single_succ (bb))) - { - /* Merge the blocks and retry. */ - merge_blocks (bb, single_succ (bb)); - changed = true; - continue; - } - - bb = bb->next_bb; - } - - return changed; -} /* Tidy the CFG by deleting unreachable code and whatnot. */ |