summaryrefslogtreecommitdiff
path: root/gcc/basic-block.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-20 17:10:11 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-20 17:10:11 +0000
commitf81d9f78beabfcc6dd340333591e4ec192c4dc2f (patch)
treefcf4a6ca198466362d0368d4f30253d39e28915f /gcc/basic-block.h
parent7f0fcd7a679c2ccbd25f6eaf1daf1f0a86f15f06 (diff)
downloadgcc-f81d9f78beabfcc6dd340333591e4ec192c4dc2f.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43476 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r--gcc/basic-block.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index 8d63cefd694..95f7e48bcfa 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. */