diff options
author | Jan Hubicka <jh@suse.cz> | 2004-08-04 23:37:06 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2004-08-04 21:37:06 +0000 |
commit | 878f99d22982a567cffaa1c0c21fb52e230f867d (patch) | |
tree | 14f9d312df96f3a3cf47a367e3b936b8d773c4fe /gcc/basic-block.h | |
parent | d4794d1a61d47a03acde40beaf0a372929212754 (diff) | |
download | gcc-878f99d22982a567cffaa1c0c21fb52e230f867d.tar.gz |
basic-block.h (profile_staus): New global variable.
* basic-block.h (profile_staus): New global variable.
* cfg.c (profile_status): Declare.
(check_bb_profile): Break out from ....; use profile_status
(dump_flow_info): ... here.
* cfgbuild.c (find_basic_blocks): Set profile_status.
* cfgexpand.c (tree_expand_cfg): Likewise.
* predict.c (estimate_probability): Likewise.
* profile.c (branch_prob): Likewise.
* tree-cfg.c (build_tree_cfg): Likewise.
(dump_function_to_file): Use check_bb_profile.
* tree-pretty-print (dump_bb_header): Likewise.
* tree-profile.c (do_tree_profiling): Cleanup.
From-SVN: r85579
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index c42a66d6f0a..76f13687a52 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -330,6 +330,14 @@ extern int last_basic_block; extern int n_edges; +/* Signalize the status of profile information in the CFG. */ +extern enum profile_status +{ + PROFILE_ABSENT, + PROFILE_GUESSED, + PROFILE_READ +} profile_status; + /* Index by basic block number, get basic block struct info. */ extern GTY(()) varray_type basic_block_info; @@ -723,6 +731,7 @@ extern basic_block first_dom_son (enum cdi_direction, basic_block); extern basic_block next_dom_son (enum cdi_direction, basic_block); extern edge try_redirect_by_replacing_jump (edge, basic_block, bool); extern void break_superblocks (void); +extern void check_bb_profile (basic_block, FILE *); #include "cfghooks.h" |