From: Jan Hubicka Date: Tue, 18 Jul 2017 13:51:22 +0000 (+0200) Subject: re PR tree-optimization/81463 (ICE in scale_loop_profile at gcc/cfgloopmanip.c:603) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35896b18ecb8ac88c4c21b2b21c01e9d435a5ebe;p=gcc.git re PR tree-optimization/81463 (ICE in scale_loop_profile at gcc/cfgloopmanip.c:603) PR middle-end/81463 * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency again. From-SVN: r250311 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 892c0258534..601de6a110a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-07-18 Jan Hubicka + + PR middle-end/81463 + * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency + again. + 2017-07-18 Jan Hubicka PR middle-end/81462 diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c index f62c829bd5f..fd335c3fe1d 100644 --- a/gcc/cfgloopmanip.c +++ b/gcc/cfgloopmanip.c @@ -591,7 +591,7 @@ scale_loop_profile (struct loop *loop, profile_probability p, determined = true; } } - if (!determined) + if (!determined && loop->header->frequency) { int freq_in = 0;