diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-02 05:14:26 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-04-02 05:14:26 +0000 |
commit | c28f0245e206e28e55e6e38cd28579bc5e32fac0 (patch) | |
tree | 330c5c798a158ed1a698b42d78bdcc0c5f127e58 /gcc/cgraphclones.c | |
parent | b6c086d26f8ca9de6e6ad7ac4f7f9f0da28258a1 (diff) | |
download | gcc-c28f0245e206e28e55e6e38cd28579bc5e32fac0.tar.gz |
* lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
split_part.
* ipa-inline.c (edge_badness): Add wrapper penalty.
(sum_callers): Move up.
(inline_small_functions): Set single_caller.
* ipa-inline.h (inline_summary): Add single_caller.
* ipa-split.c (split_function): Set split_part.
(cgraph_node::create_clone): Do not shadow decl; copy split_part.
* cgraph.h (cgraph_node): Add split_part.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221818 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r-- | gcc/cgraphclones.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index c74017615fd..b587ff2cb76 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -437,7 +437,7 @@ cgraph_node::expand_all_artificial_thunks () node is not inlined. */ cgraph_node * -cgraph_node::create_clone (tree decl, gcov_type gcov_count, int freq, +cgraph_node::create_clone (tree new_decl, gcov_type gcov_count, int freq, bool update_original, vec<cgraph_edge *> redirect_callers, bool call_duplication_hook, @@ -449,7 +449,7 @@ cgraph_node::create_clone (tree decl, gcov_type gcov_count, int freq, gcov_type count_scale; unsigned i; - new_node->decl = decl; + new_node->decl = new_decl; new_node->register_symbol (); new_node->origin = origin; new_node->lto_file_data = lto_file_data; @@ -476,6 +476,7 @@ cgraph_node::create_clone (tree decl, gcov_type gcov_count, int freq, new_node->clone.tree_map = NULL; new_node->clone.args_to_skip = args_to_skip; + new_node->split_part = split_part; if (!args_to_skip) new_node->clone.combined_args_to_skip = clone.combined_args_to_skip; else if (clone.combined_args_to_skip) |