tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead initialization.
authorPat Haugen <pthaugen@us.ibm.com>
Wed, 31 Oct 2018 15:30:48 +0000 (15:30 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Wed, 31 Oct 2018 15:30:48 +0000 (15:30 +0000)
* tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead
initialization.

From-SVN: r265693

gcc/ChangeLog
gcc/tree-ssa-loop-ivcanon.c

index 26cfa87d6b825edd6add7bdbf713548fc8d4259d..120e1223d82094d3f5a57cacd6e6d0f5f865d6b7 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-31  Pat Haugen  <pthaugen@us.ibm.com>
+
+       * tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead
+       initialization.
+
 2018-10-31  Martin Liska  <mliska@suse.cz>
 
        PR driver/83193
index eeae2a8c54af14e58970d1797c92ecc86ac0523c..c2953059fb9218d4bc4cf12fe9277a552b4a04bd 100644 (file)
@@ -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);