aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.h
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2014-06-24 05:07:13 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2014-06-24 03:07:13 +0000
commiteb6a09a72512d4280d733ac952bfda092322793a (patch)
treea51449e3f96f4e51de47700bc16b67cd2476d8ce /gcc/cgraph.h
parentd7dab049c733dce5c6bc35aae0194a0cef3aaa9f (diff)
downloadgcc-eb6a09a72512d4280d733ac952bfda092322793a.zip
gcc-eb6a09a72512d4280d733ac952bfda092322793a.tar.gz
gcc-eb6a09a72512d4280d733ac952bfda092322793a.tar.bz2
varpool.c (dump_varpool_node): Dump used_by_single_function.
* 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. From-SVN: r211925
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r--gcc/cgraph.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 2fad193..ce6b9e6 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -719,6 +719,12 @@ public:
unsigned dynamically_initialized : 1;
ENUM_BITFIELD(tls_model) tls_model : 3;
+
+ /* Set if the variable is known to be used by single function only.
+ This is computed by ipa_signle_use pass and used by late optimizations
+ in places where optimization would be valid for local static variable
+ if we did not do any inter-procedural code movement. */
+ unsigned used_by_single_function : 1;
};
/* Every top level asm statement is put into a asm_node. */