diff options
author | Jan Hubicka <jh@suse.cz> | 2010-07-08 18:46:49 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-07-08 16:46:49 +0000 |
commit | 09411461d2e1d7dfcc3aed713bddc68e34ba223d (patch) | |
tree | bc5d1a43aa025755bcaa3455dd75d5fff8fd479a /gcc/cgraph.h | |
parent | 72109b25534c8471768fa2765bebe7c62420e059 (diff) | |
download | gcc-09411461d2e1d7dfcc3aed713bddc68e34ba223d.zip gcc-09411461d2e1d7dfcc3aed713bddc68e34ba223d.tar.gz gcc-09411461d2e1d7dfcc3aed713bddc68e34ba223d.tar.bz2 |
cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls): New function.
* cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
New function.
* cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
Declare.
* ipa-cp.c (ipcp_estimate_growth): Use it.
* ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
Likewise.
From-SVN: r161966
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index bbce3d8..2dcdf2f 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -664,6 +664,8 @@ void cgraph_remove_node_duplication_hook (struct cgraph_2node_hook_list *); void cgraph_materialize_all_clones (void); gimple cgraph_redirect_edge_call_stmt_to_callee (struct cgraph_edge *); bool cgraph_propagate_frequency (struct cgraph_node *node); +bool cgraph_will_be_removed_from_program_if_no_direct_calls + (struct cgraph_node *node); /* In cgraphbuild.c */ unsigned int rebuild_cgraph_edges (void); void cgraph_rebuild_references (void); |