Introduce -fdump-ipa-clones dump output
authorMartin Liska <mliska@suse.cz>
Wed, 30 Nov 2016 09:28:19 +0000 (10:28 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 30 Nov 2016 09:28:19 +0000 (09:28 +0000)
commit0bdad1238b5b49ef3302321000d8eebf103e9038
tree6d721cbe91abe7323a92144b80da27b5858de8ad
parentfb61d96cf20d5bb6db8fd72ef7b528804e9f6be4
Introduce -fdump-ipa-clones dump output

* cgraph.c (symbol_table::initialize): Initialize
ipa_clones_dump_file.
(cgraph_node::remove): Report to ipa_clones_dump_file.
* cgraph.h: Add new argument (suffix) to cloning methods.
* cgraphclones.c (dump_callgraph_transformation): New function.
(cgraph_node::create_clone): New argument.
(cgraph_node::create_virtual_clone): Likewise.
(cgraph_node::create_version_clone): Likewise.
* dumpfile.c: Add .ipa-clones dump file.
* dumpfile.h (enum tree_dump_index): Add TDI_clones
* ipa-inline-transform.c (clone_inlined_nodes): Report operation
to dump_callgraph_transformation.

From-SVN: r243004
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cgraphclones.c
gcc/dumpfile.c
gcc/dumpfile.h
gcc/ipa-inline-transform.c