diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-10 08:19:21 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-10 08:19:21 +0000 |
commit | 47199071a049d529a66ee06128853fd7774846ef (patch) | |
tree | 6b92c821c2ae799a2ab7f42bf9b9d1f1861fa75f /gcc/cgraph.c | |
parent | b49a67e18934624dd9ca33d4f8f1f1cba2ede38e (diff) | |
download | gcc-47199071a049d529a66ee06128853fd7774846ef.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186268 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index e429a91d82e..8ab8a0b7b06 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -2437,10 +2437,9 @@ cgraph_add_new_function (tree fndecl, bool lowered) push_cfun (DECL_STRUCT_FUNCTION (fndecl)); current_function_decl = fndecl; gimple_register_cfg_hooks (); - tree_lowering_passes (fndecl); bitmap_obstack_initialize (NULL); - if (!gimple_in_ssa_p (DECL_STRUCT_FUNCTION (fndecl))) - execute_pass_list (pass_early_local_passes.pass.sub); + execute_pass_list (all_lowering_passes); + execute_pass_list (pass_early_local_passes.pass.sub); bitmap_obstack_release (NULL); pop_cfun (); current_function_decl = NULL; |