From af2bbc51d3879b6e7a03b4dc2d4ab017a98270ba Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 1 Jul 2017 22:46:40 +0200 Subject: cfg.c (scale_bbs_frequencies): New function. * cfg.c (scale_bbs_frequencies): New function. * cfg.h (scale_bbs_frequencies): Declare it. * cfgloopanal.c (single_likely_exit): Cleanup. * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability as parameter. (scale_loop_profile): Likewise. (loop_version): Likewise. (create_empty_loop_on_edge): Update. * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile, scale_loop_frequencies, scale_loop_profile, loopify, loop_version): Update prototypes. * modulo-sched.c (sms_schedule): Update. * predict.c (unlikely_executed_edge_p): Also check probability. (probably_never_executed_edge_p): Fix typo. * tree-if-conv.c (version_loop_for_if_conversion): Update. * tree-parloops.c (gen_parallel_loop): Update. * tree-ssa-loop-ivcanon.c (try_peel_loop): Update. * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update. * tree-ssa-loop-split.c (split_loop): Update. * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update. * tree-vect-loop-manip.c (vect_do_peeling): Update. (vect_loop_versioning): Update. * tree-vect-loop.c (scale_profile_for_vect_loop): Update. From-SVN: r249872 --- gcc/tree-parloops.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gcc/tree-parloops.c') diff --git a/gcc/tree-parloops.c b/gcc/tree-parloops.c index a47ea5c..cf9bc36 100644 --- a/gcc/tree-parloops.c +++ b/gcc/tree-parloops.c @@ -2251,7 +2251,6 @@ gen_parallel_loop (struct loop *loop, gimple_seq stmts; edge entry, exit; struct clsn_data clsn_data; - unsigned prob; location_t loc; gimple *cond_stmt; unsigned int m_p_thread=2; @@ -2358,12 +2357,11 @@ gen_parallel_loop (struct loop *loop, initialize_original_copy_tables (); /* We assume that the loop usually iterates a lot. */ - prob = 4 * REG_BR_PROB_BASE / 5; loop_version (loop, many_iterations_cond, NULL, - profile_probability::from_reg_br_prob_base (prob), - profile_probability::from_reg_br_prob_base - (REG_BR_PROB_BASE - prob), - prob, REG_BR_PROB_BASE - prob, true); + profile_probability::likely (), + profile_probability::unlikely (), + profile_probability::likely (), + profile_probability::unlikely (), true); update_ssa (TODO_update_ssa); free_original_copy_tables (); } -- cgit v1.1