diff options
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r-- | gcc/tree-eh.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index fc016d7..34c223d 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -3244,9 +3244,7 @@ lower_resx (basic_block bb, gresx *stmt, } gcc_assert (EDGE_COUNT (bb->succs) == 0); - e = make_edge (bb, new_bb, EDGE_FALLTHRU); - e->count = bb->count; - e->probability = REG_BR_PROB_BASE; + e = make_single_succ_edge (bb, new_bb, EDGE_FALLTHRU); } else { @@ -3262,7 +3260,7 @@ lower_resx (basic_block bb, gresx *stmt, e = single_succ_edge (bb); gcc_assert (e->flags & EDGE_EH); e->flags = (e->flags & ~EDGE_EH) | EDGE_FALLTHRU; - e->probability = REG_BR_PROB_BASE; + e->probability = profile_probability::always (); e->count = bb->count; /* If there are no more EH users of the landing pad, delete it. */ @@ -4283,7 +4281,7 @@ cleanup_empty_eh_move_lp (basic_block bb, edge e_out, /* Clean up E_OUT for the fallthru. */ e_out->flags = (e_out->flags & ~EDGE_EH) | EDGE_FALLTHRU; - e_out->probability = REG_BR_PROB_BASE; + e_out->probability = profile_probability::always (); e_out->count = e_out->src->count; } |