From: Jan Hubicka Date: Sat, 4 Apr 2020 13:56:52 +0000 (+0200) Subject: Fix previous commit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21e28527130a89491f848dfb5019afa01b252479;p=gcc.git Fix previous commit. gcc/ChangeLog: 2020-04-04 Jan Hubicka PR ipa/93940 * ipa-fnsummary.c (vrp_will_run_p): New function. (fre_will_run_p): New function. (evaluate_properties_for_edge): Use it. * ipa-inline.c (can_inline_edge_by_limits_p): Do not inline !optimize_debug to optimize_debug. gcc/testsuite/ChangeLog: 2020-04-04 Jan Hubicka * g++.dg/tree-ssa/pr93940.C: New test. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0221945fe6c..75e3a4f3993 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2020-04-04 Jan Hubicka + + PR ipa/93940 + * ipa-fnsummary.c (vrp_will_run_p): New function. + (fre_will_run_p): New function. + (evaluate_properties_for_edge): Use it. + * ipa-inline.c (can_inline_edge_by_limits_p): Do not inline + !optimize_debug to optimize_debug. + 2020-04-04 Jakub Jelinek PR rtl-optimization/94468 diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index d96c8e9b03c..045a0ecf766 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -636,7 +636,7 @@ evaluate_properties_for_edge (struct cgraph_edge *e, bool inline_p, } /* Determine known aggregate values. */ - if (vrp_will_run_p (caller)) + if (fre_will_run_p (caller)) { ipa_agg_value_set agg = ipa_agg_value_set_from_jfunc (caller_parms_info, diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 427266a877f..36eb4ba108d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-04-04 Jan Hubicka + + PR ipa/93940 + * g++.dg/tree-ssa/pr93940.C: New test. + 2020-04-04 Jakub Jelinek PR rtl-optimization/94468