Skip to content

Commit d8b1c3f

Browse files
pthaugenPat Haugen
authored and
Pat Haugen
committed
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
1 parent f3f6029 commit d8b1c3f

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)