diff options
| author | Jan Hubicka <jh@suse.cz> | 2008-08-06 09:50:52 +0200 |
|---|---|---|
| committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-08-06 07:50:52 +0000 |
| commit | c3702ff90aa3f2b3e318e7e83a5df5e9614cf074 (patch) | |
| tree | 1a8c614f328ecdb9330368a3d1945f065ad2329d /gcc/predict.c | |
| parent | e0a17959335723628c929e5feefbe964249f4fb6 (diff) | |
| download | gcc-c3702ff90aa3f2b3e318e7e83a5df5e9614cf074.zip gcc-c3702ff90aa3f2b3e318e7e83a5df5e9614cf074.tar.gz gcc-c3702ff90aa3f2b3e318e7e83a5df5e9614cf074.tar.bz2 | |
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
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 853c0c6..e90b95c 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; |
