https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83201
--- Comment #6 from Pat Haugen <pthaugen at gcc dot gnu.org> --- So I did a bisect of trunk during the GCC 7 development timeframe (r235035-r247017) and it pointed to r236878 as the point where the failure started. +++ gcc/ChangeLog (revision 236878) @@ -1,3 +1,9 @@ +2016-05-30 Jan Hubicka <hubi...@ucw.cz> + + * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit + for peeled copies; avoid underflow when updating estimates; correctly + scale loop profile. +