invoke.texi (-fipa-cp-clone): New option.
authorJan Hubicka <jh@suse.cz>
Sun, 24 Aug 2008 20:09:32 +0000 (22:09 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 24 Aug 2008 20:09:32 +0000 (20:09 +0000)
commit5e45130d9933ee9f3c2a6e7571985e6667a0f8fd
tree15e8f39fcea6710eaf6421db403e5763c55d3734
parent657c0925049e8902484474e0a1b53dfe34863858
invoke.texi (-fipa-cp-clone): New option.

* doc/invoke.texi (-fipa-cp-clone): New option.
(-fipa-cp): Update docs.
(--param ipcp-unit-growth):New.
* ipa-cp.c: Include fibheap.h, params.h
(ipcp_initialize_node_lattices): When not cloning, all externally
visible functions are bottom.
(ipcp_need_redirect_p): Accept clones.
(ipcp_insert_stage): Use cost driven heuristics.
(max_count, dead_nodes): New static vars.
(ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
ipcp_const_param_count): New functions.
* common.opt (ipa-cp-clone): New command line option.
* params.def (ipcp-unit-growth): New.

* gcc.dg/ipa/ipacost-1.c: New testcase.
* gcc.dg/ipa/ipacost-2.c: New testcase.
* gcc.dg/ipa/ipa-7.c: Update template.

From-SVN: r139543
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/ipa-cp.c
gcc/params.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipa-7.c