summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Haugen <pthaugen@us.ibm.com>2018-10-31 15:30:48 +0000
committerPat Haugen <pthaugen@gcc.gnu.org>2018-10-31 15:30:48 +0000
commitd8b1c3f075a59fec5316935240929037ea0c69c7 (patch)
treedfee724caa7eed528425314aa8d39154c49aa0a0
parentf3f6029db2e5f960c10062d8c8c74d766fcad6d2 (diff)
downloadgcc-d8b1c3f075a59fec5316935240929037ea0c69c7.tar.gz
tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead initialization.
* tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead initialization. From-SVN: r265693
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-loop-ivcanon.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 26cfa87d6b8..120e1223d82 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c
index eeae2a8c54a..c2953059fb9 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);