Remove ipa_update_after_lto_read

2017-05-03  Martin Jambor  <mjambor@suse.cz>

	* ipa-prop.c (ipa_update_after_lto_read): Removed.
	* ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
	* ipa-cp.c (ipcp_propagate_stage): Do not call
	ipa_update_after_lto_read.
	* ipa-inline.c (ipa_inline): Likewise.

From-SVN: r247559
This commit is contained in:
Martin Jambor 2017-05-03 18:49:47 +02:00 committed by Martin Jambor
parent 6fe906a33d
commit 44abeaaa70
5 changed files with 8 additions and 19 deletions

View file

@ -1,3 +1,11 @@
2017-05-03 Martin Jambor <mjambor@suse.cz>
* ipa-prop.c (ipa_update_after_lto_read): Removed.
* ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
* ipa-cp.c (ipcp_propagate_stage): Do not call
ipa_update_after_lto_read.
* ipa-inline.c (ipa_inline): Likewise.
2017-05-03 Martin Jambor <mjambor@suse.cz>
* ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY

View file

@ -3246,10 +3246,6 @@ ipcp_propagate_stage (struct ipa_topo_info *topo)
if (dump_file)
fprintf (dump_file, "\n Propagating constants:\n\n");
if (in_lto_p)
ipa_update_after_lto_read ();
FOR_EACH_DEFINED_FUNCTION (node)
{
struct ipa_node_params *info = IPA_NODE_REF (node);

View file

@ -2376,9 +2376,6 @@ ipa_inline (void)
order = XCNEWVEC (struct cgraph_node *, symtab->cgraph_count);
if (in_lto_p && optimize)
ipa_update_after_lto_read ();
if (dump_file)
dump_inline_summaries (dump_file);

View file

@ -5285,17 +5285,6 @@ ipa_prop_read_jump_functions (void)
}
}
/* After merging units, we can get mismatch in argument counts.
Also decl merging might've rendered parameter lists obsolete.
Also compute called_with_variable_arg info. */
void
ipa_update_after_lto_read (void)
{
ipa_check_create_node_params ();
ipa_check_create_edge_args ();
}
void
write_ipcp_transformation_info (output_block *ob, cgraph_node *node)
{

View file

@ -861,7 +861,6 @@ void ipa_prop_write_jump_functions (void);
void ipa_prop_read_jump_functions (void);
void ipcp_write_transformation_summaries (void);
void ipcp_read_transformation_summaries (void);
void ipa_update_after_lto_read (void);
int ipa_get_param_decl_index (struct ipa_node_params *, tree);
tree ipa_value_from_jfunc (struct ipa_node_params *info,
struct ipa_jump_func *jfunc);