diff options
author | Jan Hubicka <jh@suse.cz> | 2010-05-17 00:24:26 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-05-16 22:24:26 +0000 |
commit | ccbbf8a2db7c501bc3ad176b741f4de4e1c9642a (patch) | |
tree | 4771f6f7459bb79d821387c1cdb37bd5ee699b11 /gcc/cgraph.c | |
parent | 91fbf0c7c60930152acf7ec888ffa08383a20453 (diff) | |
download | gcc-ccbbf8a2db7c501bc3ad176b741f4de4e1c9642a.zip gcc-ccbbf8a2db7c501bc3ad176b741f4de4e1c9642a.tar.gz gcc-ccbbf8a2db7c501bc3ad176b741f4de4e1c9642a.tar.bz2 |
cgraph.c (dump_cgraph_node): Dump versionable flag.
* cgraph.c (dump_cgraph_node): Dump versionable flag.
* cgraph.h (cgraph_local_info): Add versionable flag.
* ipa-cp.c (ipcp_analyze_node): Set versionable flag.
(ipcp_versionable_function_p): Use it.
* lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
versionable flag.
From-SVN: r159467
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 6e30ec1..29a1b36 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -1830,6 +1830,8 @@ dump_cgraph_node (FILE *f, struct cgraph_node *node) fprintf (f, " always_inline"); else if (node->local.inlinable) fprintf (f, " inlinable"); + else if (node->local.versionable) + fprintf (f, " versionable"); if (node->local.redefined_extern_inline) fprintf (f, " redefined_extern_inline"); if (TREE_ASM_WRITTEN (node->decl)) @@ -2046,6 +2048,8 @@ cgraph_clone_edge (struct cgraph_edge *e, struct cgraph_node *n, /* Create node representing clone of N executed COUNT times. Decrease the execution counts from original node too. + The new clone will have decl set to DECL that may or may not be the same + as decl of N. When UPDATE_ORIGINAL is true, the counts are subtracted from the original function's profile to reflect the fact that part of execution is handled |