Commit 837bac8c by Ilya Verbin Committed by Ilya Verbin

cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.

gcc/
	* cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
	* lto-cgraph.c (select_what_to_stream): Remove argument, use
	lto_stream_offload_p instead.
	* lto-streamer.h (select_what_to_stream): Remove argument.
	* passes.c (ipa_write_summaries): Likewise.
	* tree-pass.h (ipa_write_summaries): Likewise.
gcc/lto/
	* lto-partition.c (lto_promote_cross_file_statics): Remove argument
	from select_what_to_stream.

From-SVN: r219605
parent 2f6c116d
2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
* cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
* lto-cgraph.c (select_what_to_stream): Remove argument, use
lto_stream_offload_p instead.
* lto-streamer.h (select_what_to_stream): Remove argument.
* passes.c (ipa_write_summaries): Likewise.
* tree-pass.h (ipa_write_summaries): Likewise.
2015-01-14 Richard Biener <rguenther@suse.de> 2015-01-14 Richard Biener <rguenther@suse.de>
PR tree-optimization/59354 PR tree-optimization/59354
......
...@@ -2115,14 +2115,14 @@ ipa_passes (void) ...@@ -2115,14 +2115,14 @@ ipa_passes (void)
{ {
section_name_prefix = OFFLOAD_SECTION_NAME_PREFIX; section_name_prefix = OFFLOAD_SECTION_NAME_PREFIX;
lto_stream_offload_p = true; lto_stream_offload_p = true;
ipa_write_summaries (true); ipa_write_summaries ();
lto_stream_offload_p = false; lto_stream_offload_p = false;
} }
if (flag_lto) if (flag_lto)
{ {
section_name_prefix = LTO_SECTION_NAME_PREFIX; section_name_prefix = LTO_SECTION_NAME_PREFIX;
lto_stream_offload_p = false; lto_stream_offload_p = false;
ipa_write_summaries (false); ipa_write_summaries ();
} }
} }
......
...@@ -842,11 +842,11 @@ create_references (lto_symtab_encoder_t encoder, symtab_node *node) ...@@ -842,11 +842,11 @@ create_references (lto_symtab_encoder_t encoder, symtab_node *node)
/* Select what needs to be streamed out. In regular lto mode stream everything. /* Select what needs to be streamed out. In regular lto mode stream everything.
In offload lto mode stream only nodes marked as offloadable. */ In offload lto mode stream only nodes marked as offloadable. */
void void
select_what_to_stream (bool offload_lto_mode) select_what_to_stream (void)
{ {
struct symtab_node *snode; struct symtab_node *snode;
FOR_EACH_SYMBOL (snode) FOR_EACH_SYMBOL (snode)
snode->need_lto_streaming = !offload_lto_mode || snode->offloadable; snode->need_lto_streaming = !lto_stream_offload_p || snode->offloadable;
} }
/* Find all symbols we want to stream into given partition and insert them /* Find all symbols we want to stream into given partition and insert them
......
...@@ -837,7 +837,7 @@ bool referenced_from_this_partition_p (symtab_node *, ...@@ -837,7 +837,7 @@ bool referenced_from_this_partition_p (symtab_node *,
bool reachable_from_this_partition_p (struct cgraph_node *, bool reachable_from_this_partition_p (struct cgraph_node *,
lto_symtab_encoder_t); lto_symtab_encoder_t);
lto_symtab_encoder_t compute_ltrans_boundary (lto_symtab_encoder_t encoder); lto_symtab_encoder_t compute_ltrans_boundary (lto_symtab_encoder_t encoder);
void select_what_to_stream (bool); void select_what_to_stream (void);
/* In options-save.c. */ /* In options-save.c. */
void cl_target_option_stream_out (struct output_block *, struct bitpack_d *, void cl_target_option_stream_out (struct output_block *, struct bitpack_d *,
......
2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
* lto-partition.c (lto_promote_cross_file_statics): Remove argument
from select_what_to_stream.
2015-01-09 Bernd Schmidt <bernds@codesourcery.com> 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
Jakub Jelinek <jakub@redhat.com> Jakub Jelinek <jakub@redhat.com>
......
...@@ -973,7 +973,8 @@ lto_promote_cross_file_statics (void) ...@@ -973,7 +973,8 @@ lto_promote_cross_file_statics (void)
gcc_assert (flag_wpa); gcc_assert (flag_wpa);
select_what_to_stream (false); lto_stream_offload_p = false;
select_what_to_stream ();
/* First compute boundaries. */ /* First compute boundaries. */
n_sets = ltrans_partitions.length (); n_sets = ltrans_partitions.length ();
......
...@@ -2464,7 +2464,7 @@ ipa_write_summaries_1 (lto_symtab_encoder_t encoder) ...@@ -2464,7 +2464,7 @@ ipa_write_summaries_1 (lto_symtab_encoder_t encoder)
/* Write out summaries for all the nodes in the callgraph. */ /* Write out summaries for all the nodes in the callgraph. */
void void
ipa_write_summaries (bool offload_lto_mode) ipa_write_summaries (void)
{ {
lto_symtab_encoder_t encoder; lto_symtab_encoder_t encoder;
int i, order_pos; int i, order_pos;
...@@ -2475,7 +2475,7 @@ ipa_write_summaries (bool offload_lto_mode) ...@@ -2475,7 +2475,7 @@ ipa_write_summaries (bool offload_lto_mode)
if ((!flag_generate_lto && !flag_generate_offload) || seen_error ()) if ((!flag_generate_lto && !flag_generate_offload) || seen_error ())
return; return;
select_what_to_stream (offload_lto_mode); select_what_to_stream ();
encoder = lto_symtab_encoder_new (false); encoder = lto_symtab_encoder_new (false);
......
...@@ -603,7 +603,7 @@ extern void pass_fini_dump_file (opt_pass *); ...@@ -603,7 +603,7 @@ extern void pass_fini_dump_file (opt_pass *);
extern const char *get_current_pass_name (void); extern const char *get_current_pass_name (void);
extern void print_current_pass (FILE *); extern void print_current_pass (FILE *);
extern void debug_pass (void); extern void debug_pass (void);
extern void ipa_write_summaries (bool); extern void ipa_write_summaries (void);
extern void ipa_write_optimization_summaries (struct lto_symtab_encoder_d *); extern void ipa_write_optimization_summaries (struct lto_symtab_encoder_d *);
extern void ipa_read_summaries (void); extern void ipa_read_summaries (void);
extern void ipa_read_optimization_summaries (void); extern void ipa_read_optimization_summaries (void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment