diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 08:25:17 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-10 08:25:17 +0000 |
commit | d640c29f86f8993c04dd9ea0fb673fab0714739b (patch) | |
tree | 614c0136821a4b0cc1d908634346cf7b2b65ca18 /gcc/basic-block.h | |
parent | b95e3f379ca88868cf3b683362c321c81a5b943f (diff) | |
download | gcc-d640c29f86f8993c04dd9ea0fb673fab0714739b.tar.gz |
2012-10-10 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 192289 using svnmerge.py
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@192291 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index a5491b03011..61351fb248d 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -101,6 +101,37 @@ typedef struct gcov_working_set_info gcov_type min_counter; } gcov_working_set_t; +/* Structure to gather statistic about profile consistency, per pass. + An array of this structure, indexed by pass static number, is allocated + in passes.c. The structure is defined here so that different CFG modes + can do their book-keeping via CFG hooks. + + For every field[2], field[0] is the count before the pass runs, and + field[1] is the post-pass count. This allows us to monitor the effect + of each individual pass on the profile consistency. + + This structure is not supposed to be used by anything other than passes.c + and one CFG hook per CFG mode. */ +struct profile_record +{ + /* The number of basic blocks where sum(freq) of the block's predecessors + doesn't match reasonably well with the incoming frequency. */ + int num_mismatched_freq_in[2]; + /* Likewise for a basic block's successors. */ + int num_mismatched_freq_out[2]; + /* The number of basic blocks where sum(count) of the block's predecessors + doesn't match reasonably well with the incoming frequency. */ + int num_mismatched_count_in[2]; + /* Likewise for a basic block's successors. */ + int num_mismatched_count_out[2]; + /* A weighted cost of the run-time of the function body. */ + gcov_type time[2]; + /* A weighted cost of the size of the function body. */ + int size[2]; + /* True iff this pass actually was run. */ + bool run; +}; + /* Declared in cfgloop.h. */ struct loop; |