diff options
author | Jan Hubicka <jh@suse.cz> | 2007-02-09 23:49:30 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2007-02-09 22:49:30 +0000 |
commit | 45a80bb9e800503749c797d4c57a4b6829ca9bf7 (patch) | |
tree | dd0cf0d6f5ee79e534f85b6bf4b3b2f75372bd8c /gcc/tree-pass.h | |
parent | f2477b062c9c639e5354ef705022a47dcb61e213 (diff) | |
download | gcc-45a80bb9e800503749c797d4c57a4b6829ca9bf7.zip gcc-45a80bb9e800503749c797d4c57a4b6829ca9bf7.tar.gz gcc-45a80bb9e800503749c797d4c57a4b6829ca9bf7.tar.bz2 |
Makefile.in (passes.o, [...]): Add dependencies.
* Makefile.in (passes.o, ipa-inline.o): Add dependencies.
* cgraphbuild.c (build_cgraph_edges): Compute frequencies.
(rebuild_cgraph_edges): Likewise.
* cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
(dump_cgraph_node): Dump frequencies.
(cgraph_clone_edge): Add frequency scales.
(cgraph_clone_node): Add freuqnecy.
* cgraph.h (cgraph_edge): Add freuqnecy argument.
(CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
(cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
* tree-pass.h (TODO_rebuild_frequencies): New constant.
* cgraphunit.c (verify_cgraph_node): Verify frequencies.
(cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
(save_inline_function_body): Likewise.
* ipa-inline.c: inluce rtl.h
(cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
(cgraph_edge_badness): Use frequencies.
(cgraph_decide_recursive_inlining): Update clonning.
(cgraph_decide_inlining_of_small_function): Dump frequency.
* predict.c (estimate_bb_frequencies): Export.
* predict.h (estimate_bb_frequencies): Declare.
* tree-inline.c (copy_bb): Watch overflows.
(expand_call_inline): Update call of cgraph_create_edge.
(optimize_inline_calls): Use TODO flags to update frequnecies.
* passes.h: Include predict.h
(init_optimization_passes): Move profile ahead.
(execute_function_todo): Handle TODO_rebuild_frequencies.
From-SVN: r121780
Diffstat (limited to 'gcc/tree-pass.h')
-rw-r--r-- | gcc/tree-pass.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h index bb62613..56679ca 100644 --- a/gcc/tree-pass.h +++ b/gcc/tree-pass.h @@ -167,6 +167,7 @@ struct dump_file_info #define TODO_verify_loops (1 << 6) #define TODO_dump_cgraph (1 << 7) #define TODO_remove_functions (1 << 8) +#define TODO_rebuild_frequencies (1 << 9) /* To-do flags for calls to update_ssa. */ @@ -178,13 +179,13 @@ struct dump_file_info in blocks that have one or more edges with no incoming definition for O_j. This would lead to uninitialized warnings for O_j's symbol. */ -#define TODO_update_ssa (1 << 9) +#define TODO_update_ssa (1 << 10) /* Update the SSA form without inserting any new PHI nodes at all. This is used by passes that have either inserted all the PHI nodes themselves or passes that need only to patch use-def and def-def chains for virtuals (e.g., DCE). */ -#define TODO_update_ssa_no_phi (1 << 10) +#define TODO_update_ssa_no_phi (1 << 11) /* Insert PHI nodes everywhere they are needed. No pruning of the IDF is done. This is used by passes that need the PHI nodes for @@ -195,7 +196,7 @@ struct dump_file_info may be doing something wrong. Inserting PHI nodes for an old name where not all edges carry a new replacement may lead to silent codegen errors or spurious uninitialized warnings. */ -#define TODO_update_ssa_full_phi (1 << 11) +#define TODO_update_ssa_full_phi (1 << 12) /* Passes that update the SSA form on their own may want to delegate the updating of virtual names to the generic updater. Since FUD @@ -203,20 +204,20 @@ struct dump_file_info to do. NOTE: If this flag is used, any OLD->NEW mappings for real names are explicitly destroyed and only the symbols marked for renaming are processed. */ -#define TODO_update_ssa_only_virtuals (1 << 12) +#define TODO_update_ssa_only_virtuals (1 << 13) /* Some passes leave unused local variables that can be removed from cfun->unexpanded_var_list. This reduces the size of dump files and the memory footprint for VAR_DECLs. */ -#define TODO_remove_unused_locals (1 << 13) +#define TODO_remove_unused_locals (1 << 14) /* Internally used for the first in a sequence of passes. It is set for the passes that are handed to register_dump_files. */ -#define TODO_set_props (1 << 14) +#define TODO_set_props (1 << 15) /* Set by passes that may make SMT's that were previously never used in statements, used. */ -#define TODO_update_smt_usage (1 << 15) +#define TODO_update_smt_usage (1 << 16) #define TODO_update_ssa_any \ (TODO_update_ssa \ |