Skip to content

Commit 913b81c

Browse files
author
pthaugen
committed
* 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
1 parent 048062e commit 913b81c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

gcc/ChangeLog

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-10-31 Pat Haugen <[email protected]>
2+
3+
* tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead
4+
initialization.
5+
16
2018-10-31 Martin Liska <[email protected]>
27

38
PR driver/83193

gcc/tree-ssa-loop-ivcanon.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1139,10 +1139,10 @@ try_peel_loop (struct loop *loop,
11391139
if (e->src != loop->latch)
11401140
{
11411141
if (e->src->count.initialized_p ())
1142-
entry_count = e->src->count + e->src->count;
1142+
entry_count += e->src->count;
11431143
gcc_assert (!flow_bb_inside_loop_p (loop, e->src));
11441144
}
1145-
profile_probability p = profile_probability::very_unlikely ();
1145+
profile_probability p;
11461146
p = entry_count.probability_in (loop->header->count);
11471147
scale_loop_profile (loop, p, 0);
11481148
bitmap_set_bit (peeled_loops, loop->num);

0 commit comments

Comments
 (0)