From: Martin Jambor Date: Wed, 3 May 2017 16:49:47 +0000 (+0200) Subject: Remove ipa_update_after_lto_read X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44abeaaa70548f8f8807a81f07c7574db91a356f;p=gcc.git Remove ipa_update_after_lto_read 2017-05-03 Martin Jambor * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 95aa18845fc..5d361d47fc4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-05-03 Martin Jambor + + * 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 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 26ae8fcd2aa..0b2cd630ee2 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -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); diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 2be02b627c2..ce79af5719e 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -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); diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 70990d6000b..5819f78793b 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -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) { diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h index db8f378acc7..fa5bed49ee0 100644 --- a/gcc/ipa-prop.h +++ b/gcc/ipa-prop.h @@ -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);