From 21e28527130a89491f848dfb5019afa01b252479 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 4 Apr 2020 15:56:52 +0200 Subject: [PATCH] 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. --- gcc/ChangeLog | 9 +++++++++ gcc/ipa-fnsummary.c | 2 +- gcc/testsuite/ChangeLog | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) 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 -- 2.30.2