From: pthaugen Date: Wed, 31 Oct 2018 15:30:48 +0000 (+0000) Subject: * tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=913b81c4d40ca6e1b157ea5785376d8de58b42fc;p=thirdparty%2Fgcc.git * tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead initialization. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265693 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 26cfa87d6b82..120e1223d820 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-10-31 Pat Haugen + + * tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead + initialization. + 2018-10-31 Martin Liska PR driver/83193 diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c index eeae2a8c54af..c2953059fb92 100644 --- a/gcc/tree-ssa-loop-ivcanon.c +++ b/gcc/tree-ssa-loop-ivcanon.c @@ -1139,10 +1139,10 @@ try_peel_loop (struct loop *loop, if (e->src != loop->latch) { if (e->src->count.initialized_p ()) - entry_count = e->src->count + e->src->count; + entry_count += e->src->count; gcc_assert (!flow_bb_inside_loop_p (loop, e->src)); } - profile_probability p = profile_probability::very_unlikely (); + profile_probability p; p = entry_count.probability_in (loop->header->count); scale_loop_profile (loop, p, 0); bitmap_set_bit (peeled_loops, loop->num);