ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
authorJan Hubicka <hubicka@ucw.cz>
Thu, 10 Dec 2015 19:20:14 +0000 (20:20 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 10 Dec 2015 19:20:14 +0000 (19:20 +0000)
commit5af56ae8f839480b279d1c89f4a0a1df7bd8dde2
tree929c94d07fa924c519891a5c38a32cbc3d416489
parentf6069ccc2b4a6d02ae3f51119a6471a3b11b2119
ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.

* ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
(good_cloning_opportunity_p): Likewise.
(gather_context_independent_values): Do not return true when
polymorphic call context is known or when we have known aggregate
value of unused parameter.
(estimate_local_effects): Try to create clone for all context
when either some params are substituted or devirtualization is possible
or some params can be removed; use local flag instead of
node->will_be_removed_from_program_if_no_direct_calls_p.
(identify_dead_nodes): Likewise.

* gcc.c-torture/execute/20010122-1.c: Disable cloning.

From-SVN: r231540
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20010122-1.c