diff options
author | Martin Liska <mliska@suse.cz> | 2015-10-20 13:59:51 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-10-20 11:59:51 +0000 |
commit | 7e729474b27556fc64cf413e32b460bce101b435 (patch) | |
tree | d5b42adfb7238acffc09b8dfa4f33bfe9f65cbab /gcc/ipa-prop.c | |
parent | 5f0a92e5c46e74b5d5232aab9997f6f3a27d8619 (diff) | |
download | gcc-7e729474b27556fc64cf413e32b460bce101b435.zip gcc-7e729474b27556fc64cf413e32b460bce101b435.tar.gz gcc-7e729474b27556fc64cf413e32b460bce101b435.tar.bz2 |
Correctly fill up cgraph_node::local.versionable flag.
* cgraphclones.c (cgraph_node::create_virtual_clone):
Verify cgraph_node.local.versionable instead of calling
tree_versionable_function_p.
* ipa-cp.c (determine_versionability): Save the information
to ipa_node_params summary.
(ipcp_versionable_function_p): Use it.
(ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
(ipcp_generate_summary): Do not compute cgraph_node
versionability.
* ipa-inline-analysis.c (inline_generate_summary): Compute
versionability for all cgraph nodes.
* ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
ipa_node_params::versionability.
* ipa-prop.h (struct ipa_node_params): Declare it.
From-SVN: r229055
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r-- | gcc/ipa-prop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 8dd9479..19846a8 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -3507,6 +3507,7 @@ ipa_node_params_t::duplicate(cgraph_node *src, cgraph_node *dst, new_info->analysis_done = old_info->analysis_done; new_info->node_enqueued = old_info->node_enqueued; + new_info->versionable = old_info->versionable; old_av = ipa_get_agg_replacements_for_node (src); if (old_av) |