diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-24 03:07:13 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-24 03:07:13 +0000 |
commit | 3f1f2be06a873095fddb9ffbfc17f105f7119bf8 (patch) | |
tree | a51449e3f96f4e51de47700bc16b67cd2476d8ce /gcc/varpool.c | |
parent | a53da4fcdbdb1fdffdbaca9cd680934a80a38495 (diff) | |
download | gcc-3f1f2be06a873095fddb9ffbfc17f105f7119bf8.tar.gz |
* varpool.c (dump_varpool_node): Dump used_by_single_function.
* tree-pass.h (make_pass_ipa_single_use): New pass.
* cgraph.h (used_by_single_function): New flag.
* lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
it.
* passes.def (pass_ipa_single_use): Scedule.
* ipa.c (BOTTOM): New macro.
(meet): New function
(propagate_single_user): New function.
(ipa_single_use): New function.
(pass_data_ipa_single_use): New pass.
(pass_ipa_single_use): New pass.
(pass_ipa_single_use::gate): New gate.
(make_pass_ipa_single_use): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211925 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r-- | gcc/varpool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c index f6f836539e8..580144e0899 100644 --- a/gcc/varpool.c +++ b/gcc/varpool.c @@ -211,6 +211,8 @@ dump_varpool_node (FILE *f, varpool_node *node) fprintf (f, " initialized"); if (node->output) fprintf (f, " output"); + if (node->used_by_single_function) + fprintf (f, " used-by-single-function"); if (TREE_READONLY (node->decl)) fprintf (f, " read-only"); if (ctor_for_folding (node->decl) != error_mark_node) |