diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-06 07:50:52 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-06 07:50:52 +0000 |
commit | aa5f4f3291a93a0e4833deb79fd86f3233d7a3c4 (patch) | |
tree | 1a8c614f328ecdb9330368a3d1945f065ad2329d /gcc/predict.c | |
parent | 7721da81c93c693c128bf4c757703cace40534e0 (diff) | |
download | gcc-aa5f4f3291a93a0e4833deb79fd86f3233d7a3c4.tar.gz |
* predict.c (maybe_hot_frequency_p): When profile is absent, all
frequencies might be hot.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 853c0c6f70d..e90b95c0683 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -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; |