PR middle-end/83189
* gfortran.fortran-torture/compile/pr83189.f90: New testcase.
* tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Handle zero
profile.
From-SVN: r256480
+2018-01-10 Jan Hubicka <hubicka@ucw.cz>
+
+ PR middle-end/83189
+ * gfortran.fortran-torture/compile/pr83189.f90: New testcase.
+ * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Handle zero
+ profile.
+
2018-01-10 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/83575
+2018-01-10 Jan Hubicka <hubicka@ucw.cz>
+
+ PR middle-end/83189
+ * gfortran.fortran-torture/compile/pr83189.f90: New testcase.
+
2018-01-10 Jan Hubicka <hubicka@ucw.cz>
* gcc.c-torture/compile/pr83575.c: New testcase.
{
/* Avoid dropping loop body profile counter to 0 because of zero count
in loop's preheader. */
- freq_e = freq_e.force_nonzero ();
+ if (freq_h.nonzero_p () && !(freq_e == profile_count::zero ()))
+ freq_e = freq_e.force_nonzero ();
scale_loop_frequencies (loop, freq_e.probability_in (freq_h));
}