diff options
author | Jan Hubicka <jh@suse.cz> | 2001-06-20 19:10:11 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2001-06-20 17:10:11 +0000 |
commit | 861f9cd090ca5799b4c1f2926c157ec0f313d529 (patch) | |
tree | fcf4a6ca198466362d0368d4f30253d39e28915f /gcc/basic-block.h | |
parent | c01b7cdf97e69255dd4a5dddda782ba29a32b3d1 (diff) | |
download | gcc-861f9cd090ca5799b4c1f2926c157ec0f313d529.zip gcc-861f9cd090ca5799b4c1f2926c157ec0f313d529.tar.gz gcc-861f9cd090ca5799b4c1f2926c157ec0f313d529.tar.bz2 |
predict.c (estimate_loops_at_level, [...]): New functions.
* predict.c (estimate_loops_at_level, propagate_freq
estimate_bb_frequencies, count_to_freqs): New functions.
(estimate_probability): Call estimate_bb_frequencies.
* basic-block.h (basic_block_def): Add field "freq".
(BB_FREQ_MAX): New constant.
From-SVN: r43476
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index 8d63cef..95f7e48 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -202,7 +202,12 @@ typedef struct basic_block_def { /* Expected number of executions: calculated in profile.c. */ int count; + + /* Expected frequency. Normalized to be in range 0 to BB_FREQ_MAX. */ + int frequency; } *basic_block; + +#define BB_FREQ_MAX 10000 /* Number of basic blocks in the current function. */ |