Commit d772e360 by Jan Hubicka Committed by Jan Hubicka

ipa-profile.c (check_argument_count): Check properly that e_info is non-NULL; do…

ipa-profile.c (check_argument_count): Check properly that e_info is non-NULL; do not check descriptors.

	* ipa-profile.c (check_argument_count): Check properly that e_info
	is non-NULL; do not check descriptors.

From-SVN: r278184
parent 367c959f
2019-11-13 Jan Hubicka <hubicka@ucw.cz>
* ipa-profile.c (check_argument_count): Check properly that e_info
is non-NULL; do not check descriptors.
2019-11-13 Jan Hubicka <hubicka@ucw.cz>
* ipa-inline-analysis.c (do_estimate_edge_time): Relax
check for ipa profiles.
......@@ -487,10 +487,8 @@ check_argument_count (struct cgraph_node *n, struct cgraph_edge *e)
class ipa_node_params *info = IPA_NODE_REF (n->function_symbol ());
if (!info)
return true;
if (!info->descriptors)
return true;
ipa_edge_args *e_info = IPA_EDGE_REF (e);
if (!e)
if (!e_info)
return true;
if (ipa_get_param_count (info) != ipa_get_cs_argument_count (e_info)
&& (ipa_get_param_count (info) >= ipa_get_cs_argument_count (e_info)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment