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/cfglayout.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/cfglayout.c')
-rw-r--r-- | gcc/cfglayout.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c index 0cf7d8e..e99ed64 100644 --- a/gcc/cfglayout.c +++ b/gcc/cfglayout.c @@ -723,7 +723,8 @@ fixup_reorder_chain (void) /* If the "jumping" edge is a crossing edge, and the fall through edge is non-crossing, leave things as they are. */ - else if (e_taken->crossing_edge && !e_fall->crossing_edge) + else if ((e_taken->flags & EDGE_CROSSING) + && !(e_fall->flags & EDGE_CROSSING)) continue; /* Otherwise we can try to invert the jump. This will @@ -814,7 +815,7 @@ fixup_reorder_chain (void) } if (JUMP_P (BB_END (bb)) && !any_condjump_p (BB_END (bb)) - && bb->succ->crossing_edge ) + && (bb->succ->flags & EDGE_CROSSING)) REG_NOTES (BB_END (bb)) = gen_rtx_EXPR_LIST (REG_CROSSING_JUMP, NULL_RTX, REG_NOTES (BB_END (bb))); } |