Commit 35896b18 by Jan Hubicka Committed by Jan Hubicka

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
parent 33e9feb5
2017-07-18 Jan Hubicka <hubicka@ucw.cz> 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 PR middle-end/81462
* predict.c (set_even_probabilities): Cleanup; do not affect * predict.c (set_even_probabilities): Cleanup; do not affect
probabilities that are already known. probabilities that are already known.
......
...@@ -591,7 +591,7 @@ scale_loop_profile (struct loop *loop, profile_probability p, ...@@ -591,7 +591,7 @@ scale_loop_profile (struct loop *loop, profile_probability p,
determined = true; determined = true;
} }
} }
if (!determined) if (!determined && loop->header->frequency)
{ {
int freq_in = 0; int freq_in = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment