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
This commit is contained in:
Jan Hubicka 2017-07-18 15:51:22 +02:00 committed by Jan Hubicka
parent 33e9feb530
commit 35896b18ec
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2017-07-18 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/81463
* cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
again.
2017-07-18 Jan Hubicka <hubicka@ucw.cz>
PR middle-end/81462

View file

@ -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;