Remove ipa_update_after_lto_read
authorMartin Jambor <mjambor@suse.cz>
Wed, 3 May 2017 16:49:47 +0000 (18:49 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 3 May 2017 16:49:47 +0000 (18:49 +0200)
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

gcc/ChangeLog
gcc/ipa-cp.c
gcc/ipa-inline.c
gcc/ipa-prop.c
gcc/ipa-prop.h

index 95aa188..5d361d4 100644 (file)
@@ -1,5 +1,13 @@
 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
        tag.  Added a default constructor and a destructor.
        (ipa_edge_args_sum_t): New class;
index 26ae8fc..0b2cd63 100644 (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);
index 2be02b6..ce79af5 100644 (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);
 
index 70990d6..5819f78 100644 (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)
 {
index db8f378..fa5bed4 100644 (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);