From: Jan Hubicka Date: Sat, 9 Nov 2019 21:35:35 +0000 (+0100) Subject: ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF on function symbol. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2ee6e04aaecc856bced29711f9765660e0888994;p=gcc.git ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF on function symbol. * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF on function symbol. * gcc.dg/tree-ssa/pr46076.c: Make tested code hot. From-SVN: r278009 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5a91905aeb..eb80b71668d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-11-09 Jan Hubicka + + * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF + on function symbol. + 2019-11-09 Jan Hubicka * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P, diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 941e732359f..7b8182766ee 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -474,7 +474,7 @@ evaluate_properties_for_edge (struct cgraph_edge *e, bool inline_p, caller_parms_info = IPA_NODE_REF (e->caller->inlined_to); else caller_parms_info = IPA_NODE_REF (e->caller); - callee_pi = IPA_NODE_REF (e->callee); + callee_pi = IPA_NODE_REF (callee); if (count && (info->conds || known_vals_ptr)) known_vals.safe_grow_cleared (count); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fcad98053bc..1c9657f3605 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-11-09 Jan Hubicka + + * gcc.dg/tree-ssa/pr46076.c: Make tested code hot. + 2019-11-09 Jakub Jelinek PR tree-optimization/92401 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr46076.c b/gcc/testsuite/gcc.dg/tree-ssa/pr46076.c index a2777a604b9..6e5907b4995 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr46076.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr46076.c @@ -19,9 +19,12 @@ main() { /* Make sure we perform indirect inlining of one and two and optimize the result to a constant. */ - if (print(one) != 3) - link_error (); - if (print(two) != 5) - link_error (); + for (int i = 0; i < 100; i++) + { + if (print(one) != 3) + link_error (); + if (print(two) != 5) + link_error (); + } return 0; }