predict.c (maybe_hot_frequency_p): When profile is absent, all frequencies might be hot.

* predict.c (maybe_hot_frequency_p): When profile is absent, all
	frequencies might be hot.

From-SVN: r138764
This commit is contained in:
Jan Hubicka 2008-08-06 09:50:52 +02:00 committed by Jan Hubicka
parent e0a1795933
commit c3702ff90a
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-08-06 Jan Hubicka <jh@suse.cz>
* predict.c (maybe_hot_frequency_p): When profile is absent, all
frequencies might be hot.
2008-08-06 Andreas Krebbel <krebbel1@de.ibm.com>
* reload.c (find_reloads): Force constants into literal pool

View file

@ -118,6 +118,8 @@ maybe_hot_frequency_p (int freq)
if (cfun->function_frequency == FUNCTION_FREQUENCY_HOT)
return true;
}
if (profile_status == PROFILE_ABSENT)
return true;
if (freq < BB_FREQ_MAX / PARAM_VALUE (HOT_BB_FREQUENCY_FRACTION))
return false;
return true;