* ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
commit15a1fce36358508909f2013fd6d07e0b9fcad97a
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Dec 2015 19:20:14 +0000 (10 19:20 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Dec 2015 19:20:14 +0000 (10 19:20 +0000)
tree929c94d07fa924c519891a5c38a32cbc3d416489
parenta515ebdf42ed95d4da0dda163b96731ef26c333c
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231540 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-cp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20010122-1.c