summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-11-14 00:39:44 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-11-13 23:39:44 +0000
commitd772e360ba9fa1f683bac47fcb66988462d2a583 (patch)
tree3f59056c6dc0e6b5496c730041d90061dd3daa12
parent367c959f0303e11e0a6d875abba7d03c72686668 (diff)
downloadgcc-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/ChangeLog5
-rw-r--r--gcc/ipa-profile.c4
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)