ipa-inline-transform.c (can_remove_node_now_p): Move out of...
authorJan Hubicka <jh@suse.cz>
Fri, 10 Jun 2011 11:43:01 +0000 (13:43 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 10 Jun 2011 11:43:01 +0000 (11:43 +0000)
commita5b1779f81ebfa6d13f0e5116234c8282d71c46d
tree1d26feeab584ee3df009ef00a986f63acea4c6bd
parentc1ae3ca5d8842831d35b08e6e9ae1f983b39bc6b
ipa-inline-transform.c (can_remove_node_now_p): Move out of...

* ipa-inline-transform.c (can_remove_node_now_p): Move out of...
(clone_inlined_nodes): ... here.
(inline_call): Use cgraph_function_or_thunk_node; redirect edge
to real destination prior inlining.
* ipa-inline.c (caller_growth_limits, can_inline_edge_p,
can_early_inline_edge_p, want_early_inline_function_p,
want_early_inline_function_p, want_inline_small_function_p,
want_inline_self_recursive_call_p, want_inline_function_called_once_p,
edge_badness, update_all_callee_keys, lookup_recursive_calls,
add_new_edges_to_heap, inline_small_functions, flatten_function,
inline_always_inline_functions, early_inline_small_functions): Use
cgraph_function_or_thunk_node.
* ipa-inline-analysis.c (evaluate_conditions_for_edge,
dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
(do_estimate_edge_growth_1): Break out from ...
(do_estimate_growth) ... here; walk aliases.
(inline_generate_summary): Skip aliases.

From-SVN: r174901
gcc/ChangeLog
gcc/ipa-inline-analysis.c
gcc/ipa-inline-transform.c
gcc/ipa-inline.c