Skip to content

Commit

Permalink
* tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead
Browse files Browse the repository at this point in the history
	initialization.



git-svn-id: svn://gcc.gnu.org/svn/gcc/trunk@265693 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
pthaugen committed Oct 31, 2018
1 parent 7c2269e commit 62e0ba6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2018-10-31 Pat Haugen <[email protected]>

* tree-ssa-loop-ivcanon.c (try_peel_loop): Fix typo and remove dead
initialization.

2018-10-31 Martin Liska <[email protected]>

PR driver/83193
Expand Down
4 changes: 2 additions & 2 deletions gcc/tree-ssa-loop-ivcanon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62e0ba6

Please sign in to comment.