ipa-cp.c (ipcp_init_cloned_node): Replace calls to ipa_check_create_node_params and...
authorMartin Jambor <mjambor@suse.cz>
Mon, 28 Jun 2010 16:43:09 +0000 (18:43 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Mon, 28 Jun 2010 16:43:09 +0000 (18:43 +0200)
2010-06-28  Martin Jambor  <mjambor@suse.cz>

* ipa-cp.c (ipcp_init_cloned_node): Replace calls to
ipa_check_create_node_params and ipa_initialize_node_params with
checking asserts they are not necessary.

From-SVN: r161502

gcc/ChangeLog
gcc/ipa-cp.c

index 5bf683a..ffec6e4 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-28  Martin Jambor  <mjambor@suse.cz>
+
+       * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
+       ipa_check_create_node_params and ipa_initialize_node_params with
+       checking asserts they are not necessary.
+
 2010-06-28  Jan Hubicka  <jh@suse.cz>
 
        PR tree-optimization/44687
index 78dccf8..8f99373 100644 (file)
@@ -172,8 +172,11 @@ static void
 ipcp_init_cloned_node (struct cgraph_node *orig_node,
                       struct cgraph_node *new_node)
 {
-  ipa_check_create_node_params ();
-  ipa_initialize_node_params (new_node);
+  gcc_checking_assert (ipa_node_params_vector
+                      && (VEC_length (ipa_node_params_t,
+                                      ipa_node_params_vector)
+                          > (unsigned) cgraph_max_uid));
+  gcc_checking_assert (IPA_NODE_REF (new_node)->params);
   IPA_NODE_REF (new_node)->ipcp_orig_node = orig_node;
 }