From 16ac1565a5e2535909827ed5a0ce26a9fd6944cd Mon Sep 17 00:00:00 2001 From: jamborm Date: Mon, 28 Jun 2010 16:43:09 +0000 Subject: 2010-06-28 Martin Jambor * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161502 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ipa-cp.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gcc/ipa-cp.c') diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 78dccf85b04..8f9937320a1 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -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; } -- cgit v1.2.1