diff options
author | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-05-25 12:34:01 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-05-25 12:34:01 +0000 |
commit | 670cd5c514fbb1054692e52f765191668a17f05c (patch) | |
tree | cbc0aabd04b30c845e5acd57b7e1bb0c6b3c0fb7 /gcc/tree-optimize.c | |
parent | a71a498df01ba32349bed4e72631433be1ff4a2a (diff) | |
download | gcc-670cd5c514fbb1054692e52f765191668a17f05c.zip gcc-670cd5c514fbb1054692e52f765191668a17f05c.tar.gz gcc-670cd5c514fbb1054692e52f765191668a17f05c.tar.bz2 |
Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
* Makefile.in (ipa-inline.o): Add COEVERAGE_H dependency.
* cgraph.c (cgraph_create_node): Reset estimated_growth.
* cgraph.h (cgraph_global_info): Add estimated_growth.
* ipa-inline.c: Include coverage.h
(max_insns, max_count): New static variables.
(cgraph_estimate_size_after_inlining): Cache the result.
(cgraph_estimate_growth):
* passes.c (rest_of_clean_state): Kill coverage_end_function.
* timevar.def (TV_INLINE_HEURISTICS): New timevar.
* tree-optimize.c (init_tree_optimization_passes): Move profiling before
inlining.
(ipa_passes): Initialize bitmaps.
* gcc.dg/tree-prof/inliner-1.c: New.
2005-05-25 Janis Johnson <janis187@us.ibm.com>
* gcc.dg/tree-prof: New directory.
* gcc.dg/tree-prof/tree-prof.exp: New.
From-SVN: r100144
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index 7c9beb8..825c2b1 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -377,11 +377,11 @@ init_tree_optimization_passes (void) NEXT_PASS (pass_build_cfg); NEXT_PASS (pass_pre_expand); NEXT_PASS (pass_warn_function_return); + NEXT_PASS (pass_tree_profile); *p = NULL; p = &all_passes; NEXT_PASS (pass_fixup_cfg); - NEXT_PASS (pass_tree_profile); NEXT_PASS (pass_init_datastructures); NEXT_PASS (pass_all_optimizations); NEXT_PASS (pass_warn_function_noreturn); @@ -682,7 +682,9 @@ tree_lowering_passes (tree fn) void ipa_passes (void) { - execute_pass_list (all_ipa_passes); + bitmap_obstack_initialize (NULL); + execute_pass_list (all_ipa_passes); + bitmap_obstack_release (NULL); } |