diff options
author | Richard Guenther <rguenther@suse.de> | 2012-04-10 08:19:21 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-04-10 08:19:21 +0000 |
commit | 26eb69c619a491be1a40413b98d010b2d3ef984a (patch) | |
tree | 6b92c821c2ae799a2ab7f42bf9b9d1f1861fa75f /gcc/tree-optimize.c | |
parent | bcc2b4cdc2b3692baa1e2c64c5c520a0dc66bc4b (diff) | |
download | gcc-26eb69c619a491be1a40413b98d010b2d3ef984a.zip gcc-26eb69c619a491be1a40413b98d010b2d3ef984a.tar.gz gcc-26eb69c619a491be1a40413b98d010b2d3ef984a.tar.bz2 |
tree-pass.h (tree_lowering_passes): Remove.
2012-04-10 Richard Guenther <rguenther@suse.de>
* tree-pass.h (tree_lowering_passes): Remove.
* tree-optimize.c (tree_lowering_passes): Remove.
* cgraph.c (cgraph_add_new_function): Inline relevant parts
of tree_lowering_passes, avoid redundant call of early local
passes.
* cgraphunit.c (cgraph_lower_function): Fold into ...
(cgraph_analyze_function): ... its single caller. Inline
relevant parts of tree_lowering_passes.
From-SVN: r186268
Diffstat (limited to 'gcc/tree-optimize.c')
-rw-r--r-- | gcc/tree-optimize.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index 3d18d20..e59d1ad 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -366,26 +366,6 @@ struct gimple_opt_pass pass_init_datastructures = 0 /* todo_flags_finish */ } }; - -void -tree_lowering_passes (tree fn) -{ - tree saved_current_function_decl = current_function_decl; - - current_function_decl = fn; - push_cfun (DECL_STRUCT_FUNCTION (fn)); - gimple_register_cfg_hooks (); - bitmap_obstack_initialize (NULL); - execute_pass_list (all_lowering_passes); - if (optimize && cgraph_global_info_ready) - execute_pass_list (pass_early_local_passes.pass.sub); - free_dominance_info (CDI_POST_DOMINATORS); - free_dominance_info (CDI_DOMINATORS); - compact_blocks (); - current_function_decl = saved_current_function_decl; - bitmap_obstack_release (NULL); - pop_cfun (); -} /* For functions-as-trees languages, this performs all optimization and compilation for FNDECL. */ |