diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2019-11-14 00:39:44 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2019-11-13 23:39:44 +0000 |
commit | d772e360ba9fa1f683bac47fcb66988462d2a583 (patch) | |
tree | 3f59056c6dc0e6b5496c730041d90061dd3daa12 | |
parent | 367c959f0303e11e0a6d875abba7d03c72686668 (diff) | |
download | gcc-d772e360ba9fa1f683bac47fcb66988462d2a583.tar.gz |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-profile.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5d97b896a6..b41e6969ff6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 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. diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index c6976431a83..61fd5e86681 100644 --- a/gcc/ipa-profile.c +++ b/gcc/ipa-profile.c @@ -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) |