diff options
author | Martin Liska <mliska@suse.cz> | 2016-11-30 10:28:19 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-11-30 09:28:19 +0000 |
commit | 0bdad1238b5b49ef3302321000d8eebf103e9038 (patch) | |
tree | 6d721cbe91abe7323a92144b80da27b5858de8ad /gcc/dumpfile.c | |
parent | fb61d96cf20d5bb6db8fd72ef7b528804e9f6be4 (diff) | |
download | gcc-0bdad1238b5b49ef3302321000d8eebf103e9038.zip gcc-0bdad1238b5b49ef3302321000d8eebf103e9038.tar.gz gcc-0bdad1238b5b49ef3302321000d8eebf103e9038.tar.bz2 |
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
Diffstat (limited to 'gcc/dumpfile.c')
-rw-r--r-- | gcc/dumpfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/dumpfile.c b/gcc/dumpfile.c index 5b23c3f..291d2ef 100644 --- a/gcc/dumpfile.c +++ b/gcc/dumpfile.c @@ -55,6 +55,8 @@ static struct dump_file_info dump_files[TDI_end] = 0, 0, 0, 0, 0, false, false}, {".type-inheritance", "ipa-type-inheritance", NULL, NULL, NULL, NULL, NULL, TDF_IPA, 0, 0, 0, 0, 0, false, false}, + {".ipa-clones", "ipa-clones", NULL, NULL, NULL, NULL, NULL, TDF_IPA, + 0, 0, 0, 0, 0, false, false}, {".tu", "translation-unit", NULL, NULL, NULL, NULL, NULL, TDF_TREE, 0, 0, 0, 0, 1, false, false}, {".class", "class-hierarchy", NULL, NULL, NULL, NULL, NULL, TDF_TREE, |