diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-26 14:34:19 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-26 14:34:19 +0000 |
commit | d2ed6106436116335a8c1b973d0c3b0fdc5c0d06 (patch) | |
tree | 4287b222452a3f92e4472b74970cdf9826728da2 /gcc/bb-reorder.c | |
parent | 8bda470364de4b05985ca927f13b5388f91e22ae (diff) | |
download | gcc-d2ed6106436116335a8c1b973d0c3b0fdc5c0d06.tar.gz |
PR rtl-optimization/16643
* cfglayout.h (cfg_layout_initialize): Add a flags parameter.
* cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
* basic-block.h (reorder_basic_blocks): Add a flags parameter.
* cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
(partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
* function.c (thread_prologue_and_epilogue_insns): Likewise.
* rtl.h (tracer): Add a flags parameter.
* tracer.c (tracer): Pass it to cfg_layout_initialise.
* passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
(rest_of_handle_reorder_blocks): Update calls to tracer and
reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
(rest_of_handle_tracer): Pass 0 to tracer.
(rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85191 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r-- | gcc/bb-reorder.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index c739eb6b546..90c14547aa6 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -1908,10 +1908,11 @@ fix_edges_for_rarely_executed_code (edge *crossing_edges, add_reg_crossing_jump_notes (); } -/* Reorder basic blocks. The main entry point to this file. */ +/* Reorder basic blocks. The main entry point to this file. FLAGS is + the set of flags to pass to cfg_layout_initialize(). */ void -reorder_basic_blocks (void) +reorder_basic_blocks (unsigned int flags) { int n_traces; int i; @@ -1925,7 +1926,7 @@ reorder_basic_blocks (void) timevar_push (TV_REORDER_BLOCKS); - cfg_layout_initialize (); + cfg_layout_initialize (flags); set_edge_can_fallthru_flag (); mark_dfs_back_edges (); @@ -1999,7 +2000,7 @@ partition_hot_cold_basic_blocks (void) crossing_edges = xcalloc (max_edges, sizeof (edge)); - cfg_layout_initialize (); + cfg_layout_initialize (0); FOR_EACH_BB (cur_bb) if (cur_bb->index >= 0 |