diff options
Diffstat (limited to 'gcc/bb-reorder.cc')
-rw-r--r-- | gcc/bb-reorder.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/bb-reorder.cc b/gcc/bb-reorder.cc index d20ccb8..6600f44 100644 --- a/gcc/bb-reorder.cc +++ b/gcc/bb-reorder.cc @@ -761,7 +761,7 @@ find_traces_1_round (int branch_th, profile_count count_th, & EDGE_CAN_FALLTHRU) && !(single_succ_edge (e->dest)->flags & EDGE_COMPLEX) && single_succ (e->dest) == best_edge->dest - && (e->dest->count.apply_scale (2, 1) + && (e->dest->count * 2 >= best_edge->count () || for_size)) { best_edge = e; @@ -944,7 +944,7 @@ better_edge_p (const_basic_block bb, const_edge e, profile_probability prob, /* The BEST_* values do not have to be best, but can be a bit smaller than maximum values. */ - profile_probability diff_prob = best_prob.apply_scale (1, 10); + profile_probability diff_prob = best_prob / 10; /* The smaller one is better to keep the original order. */ if (optimize_function_for_size_p (cfun)) @@ -966,7 +966,7 @@ better_edge_p (const_basic_block bb, const_edge e, profile_probability prob, is_better_edge = false; else { - profile_count diff_count = best_count.apply_scale (1, 10); + profile_count diff_count = best_count / 10; if (count < best_count - diff_count || (!best_count.initialized_p () && count.nonzero_p ())) |