diff options
author | Martin Liska <mliska@suse.cz> | 2014-12-22 10:33:05 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2014-12-22 09:33:05 +0000 |
commit | 9a1e784ae82f0ebff6d018631d3fe3730359f3c1 (patch) | |
tree | b8e0ce83d590d0efa7b87b19dae00bd2d2a422a0 /gcc/lto | |
parent | dd912cb89c4e5dfda4a2710ae3082f5cb12a1d04 (diff) | |
download | gcc-9a1e784ae82f0ebff6d018631d3fe3730359f3c1.zip gcc-9a1e784ae82f0ebff6d018631d3fe3730359f3c1.tar.gz gcc-9a1e784ae82f0ebff6d018631d3fe3730359f3c1.tar.bz2 |
symbol_summary is used for inline_summary.
* lto-partition.c (add_symbol_to_partition_1): New inline_summaries
is used.
(undo_partition): Likewise.
(lto_balanced_map): Likewise.
* cgraphunit.c (symbol_table::process_new_functions): New inline_summaries
is used.
* ipa-cp.c (ipcp_cloning_candidate_p): Likewise.
(devirtualization_time_bonus): Likewise.
(estimate_local_effects): Likewise.
(ipcp_propagate_stage): Likewise.
* ipa-inline-analysis.c (evaluate_conditions_for_known_args): Likewise.
(evaluate_properties_for_edge): Likewise.
(inline_summary_alloc): Likewise.
(reset_inline_summary): New inline_summary argument is introduced.
(inline_summary_t::remove): New function.
(inline_summary_t::duplicate): Likewise.
(dump_inline_edge_summary): New inline_summaries is used.
(dump_inline_summary): Likewise.
(estimate_function_body_sizes): Likewise.
(compute_inline_parameters): Likewise.
(estimate_edge_devirt_benefit): Likewise.
(estimate_node_size_and_time): Likewise.
(inline_update_callee_summaries): Likewise.
(inline_merge_summary): Likewise.
(inline_update_overall_summary): Likewise.
(simple_edge_hints): Likewise.
(do_estimate_edge_time): Likewise.
(estimate_time_after_inlining): Likewise.
(estimate_size_after_inlining): Likewise.
(do_estimate_growth): Likewise.
(growth_likely_positive): Likewise.
(inline_generate_summary): Likewise.
(inline_read_section): Likewise.
(inline_read_summary): Likewise.
(inline_write_summary): Likewise.
(inline_free_summary): Likewise.
* ipa-inline-transform.c (clone_inlined_nodes): Likewise.
(inline_call): Likewise.
* ipa-inline.c (caller_growth_limits): Likewise.
(can_inline_edge_p): Likewise.
(want_early_inline_function_p): Likewise.
(compute_uninlined_call_time): Likewise.
(compute_inlined_call_time): Likewise.
(big_speedup_p): Likewise.
(want_inline_small_function_p): Likewise.
(edge_badness): Likewise.
(update_caller_keys): Likewise.
(update_callee_keys): Likewise.
(recursive_inlining): Likewise.
(inline_small_functions): Likewise.
(inline_to_all_callers): Likewise.
(dump_overall_stats): Likewise.
(early_inline_small_functions): Likewise.
* ipa-inline.h: New class inline_summary_t replaces
vec<inline_summary_t>.
* ipa-split.c (execute_split_functions): New inline_summaries is used.
* ipa.c (walk_polymorphic_call_targets): Likewise.
* tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
From-SVN: r219006
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/lto/lto-partition.c | 10 |
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 8e158be..40cdb4e 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,5 +1,12 @@ 2014-12-22 Martin Liska <mliska@suse.cz> + * lto-partition.c (add_symbol_to_partition_1): New inline_summaries + is used. + (undo_partition): Likewise. + (lto_balanced_map): Likewise. + +2014-12-22 Martin Liska <mliska@suse.cz> + * lto-partition.c: Include of symbol-summary.h is added. * lto-symtab.c: Likewise. * lto.c: Likewise. diff --git a/gcc/lto/lto-partition.c b/gcc/lto/lto-partition.c index 13beafb..160b910 100644 --- a/gcc/lto/lto-partition.c +++ b/gcc/lto/lto-partition.c @@ -165,7 +165,7 @@ add_symbol_to_partition_1 (ltrans_partition part, symtab_node *node) { struct cgraph_edge *e; if (!node->alias) - part->insns += inline_summary (cnode)->self_size; + part->insns += inline_summaries->get (cnode)->self_size; /* Add all inline clones and callees that are duplicated. */ for (e = cnode->callees; e; e = e->next_callee) @@ -274,7 +274,7 @@ undo_partition (ltrans_partition partition, unsigned int n_nodes) partition->initializers_visited = NULL; if (!node->alias && (cnode = dyn_cast <cgraph_node *> (node))) - partition->insns -= inline_summary (cnode)->self_size; + partition->insns -= inline_summaries->get (cnode)->self_size; lto_symtab_encoder_delete_node (partition->encoder, node); node->aux = (void *)((size_t)node->aux - 1); } @@ -477,7 +477,7 @@ lto_balanced_map (int n_lto_partitions) else order[n_nodes++] = node; if (!node->alias) - total_size += inline_summary (node)->size; + total_size += inline_summaries->get (node)->size; } /* Streaming works best when the source units do not cross partition @@ -534,14 +534,14 @@ lto_balanced_map (int n_lto_partitions) && noreorder[noreorder_pos]->order < current_order) { if (!noreorder[noreorder_pos]->alias) - total_size -= inline_summary (noreorder[noreorder_pos])->size; + total_size -= inline_summaries->get (noreorder[noreorder_pos])->size; next_nodes.safe_push (noreorder[noreorder_pos++]); } add_sorted_nodes (next_nodes, partition); add_symbol_to_partition (partition, order[i]); if (!order[i]->alias) - total_size -= inline_summary (order[i])->size; + total_size -= inline_summaries->get (order[i])->size; /* Once we added a new node to the partition, we also want to add |