diff options
author | Steven Bosscher <stevenb@suse.de> | 2004-08-19 00:32:41 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2004-08-19 00:32:41 +0000 |
commit | bd454efdcf81282b006932fa7bcf8e8bc9968052 (patch) | |
tree | 78ce9f32b952d51f37e0689307e730753fca369a /gcc/cfgcleanup.c | |
parent | f80fd74213fc464dafad0aa9ffc5fd6c7ab8072a (diff) | |
download | gcc-bd454efdcf81282b006932fa7bcf8e8bc9968052.zip gcc-bd454efdcf81282b006932fa7bcf8e8bc9968052.tar.gz gcc-bd454efdcf81282b006932fa7bcf8e8bc9968052.tar.bz2 |
basic-block.h (struct edge_def): Remove crossing_edge.
* basic-block.h (struct edge_def): Remove crossing_edge.
(EDGE_CROSSING): New define.
(EDGE_ALL_FLAGS): Update.
* bb-reorder.c (find_traces_1_round, better_edge_p,
find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
find_jump_block, fix_crossing_conditional_branches,
fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
Replace all occurences of crossing_edge with an edge flag check
or set/reset.
* cfgcleanup.c (try_simplify_condjump, try_forward_edges,
try_crossjump_bb): Likewise.
* cfglayout.c (fixup_reorder_chain): Likewise.
* cfgrtl.c (force_nonfallthru_and_redirect,
commit_one_edge_insertion): Likewise.
* Makefile.in (cfganal.o): Depend on TIMEVAR_H.
* tree-flow.h (compute_dominance_frontiers): Move prototype...
* basic-block.h: ...here.
* tree-cfg.c (compute_dominance_frontiers_1,
compute_dominance_frontiers): Move from here...
* cfganal.c: ...to here. Include timevar.h.
From-SVN: r86228
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index d13e6be..8080c66 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -154,7 +154,7 @@ try_simplify_condjump (basic_block cbranch_block) if (flag_reorder_blocks_and_partition && (jump_block->partition != jump_dest_block->partition - || cbranch_jump_edge->crossing_edge)) + || (cbranch_jump_edge->flags & EDGE_CROSSING))) return false; /* The conditional branch must target the block after the @@ -461,7 +461,7 @@ try_forward_edges (int mode, basic_block b) may_thread |= target->flags & BB_DIRTY; if (FORWARDER_BLOCK_P (target) - && !target->succ->crossing_edge + && !(target->succ->flags & EDGE_CROSSING) && target->succ->dest != EXIT_BLOCK_PTR) { /* Bypass trivial infinite loops. */ @@ -1674,7 +1674,7 @@ try_crossjump_bb (int mode, basic_block bb) if (flag_reorder_blocks_and_partition && (bb->pred->src->partition != bb->pred->pred_next->src->partition - || bb->pred->crossing_edge)) + || (bb->pred->flags & EDGE_CROSSING))) return false; /* It is always cheapest to redirect a block that ends in a branch to |