ipa-inline-analysis.c (check_callers): Check node->can_remove_if_no_direct_calls_and_...
authorJan Hubicka <hubicka@ucw.cz>
Mon, 9 Mar 2015 04:53:54 +0000 (05:53 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 9 Mar 2015 04:53:54 +0000 (04:53 +0000)
commite0d514da7ba05dabd279fee99a1ef8f40f098ab0
tree4d0fa49deb182f96c355f84d405543db33394f5d
parent68ca4ac90b7413e7007ae6b08d372205e42bdb7d
ipa-inline-analysis.c (check_callers): Check node->can_remove_if_no_direct_calls_and_refs_p.

* ipa-inline-analysis.c (check_callers): Check
node->can_remove_if_no_direct_calls_and_refs_p.
(growth_likely_positive): Reorganize to call
can_remove_if_no_direct_calls_p later.
* cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
will_be_removed_from_program_if_no_direct_calls_p): Add
will_inline parameter.
* cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
Handle inliner case correctly.

From-SVN: r221277
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/ipa-inline-analysis.c