diff options
author | Martin Jambor <mjambor@suse.cz> | 2017-07-31 14:43:24 +0200 |
---|---|---|
committer | Martin Jambor <mjambor@suse.cz> | 2017-07-31 14:43:24 +0200 |
commit | b32f12dece884f1fa0f04c643a77105aff6ce8bc (patch) | |
tree | cdab5f10806561fc198f907299b0e55eb5701ef0 /gcc/tree-ssa-loop-split.c | |
parent | 166bec868d991fdf71f9a66f994e5977fcab4aa2 (diff) | |
parent | a168a775e93ec31ae743ad282d8e60fa1c116891 (diff) | |
download | gcc-gcn.tar.gz |
Merge branch 'master' into gcngcn
Diffstat (limited to 'gcc/tree-ssa-loop-split.c')
-rw-r--r-- | gcc/tree-ssa-loop-split.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-split.c b/gcc/tree-ssa-loop-split.c index e77f2bfd1b5..e454cc5dc93 100644 --- a/gcc/tree-ssa-loop-split.c +++ b/gcc/tree-ssa-loop-split.c @@ -354,10 +354,10 @@ connect_loops (struct loop *loop1, struct loop *loop2) } new_e->count = skip_bb->count; - new_e->probability = PROB_LIKELY; + new_e->probability = profile_probability::likely (); new_e->count = skip_e->count.apply_probability (PROB_LIKELY); skip_e->count -= new_e->count; - skip_e->probability = inverse_probability (PROB_LIKELY); + skip_e->probability = profile_probability::unlikely (); return new_e; } @@ -559,9 +559,13 @@ split_loop (struct loop *loop1, struct tree_niter_desc *niter) them, and fix up SSA form for that. */ initialize_original_copy_tables (); basic_block cond_bb; + + /* FIXME: probabilities seems wrong here. */ struct loop *loop2 = loop_version (loop1, cond, &cond_bb, - REG_BR_PROB_BASE, REG_BR_PROB_BASE, - REG_BR_PROB_BASE, REG_BR_PROB_BASE, + profile_probability::always (), + profile_probability::always (), + profile_probability::always (), + profile_probability::always (), true); gcc_assert (loop2); update_ssa (TODO_update_ssa); |