Fix previous commit.
authorJan Hubicka <jh@suse.cz>
Sat, 4 Apr 2020 13:56:52 +0000 (15:56 +0200)
committerJan Hubicka <jh@suse.cz>
Sat, 4 Apr 2020 15:55:04 +0000 (17:55 +0200)
gcc/ChangeLog:

2020-04-04  Jan Hubicka  <hubicka@ucw.cz>

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  <hubicka@ucw.cz>

* g++.dg/tree-ssa/pr93940.C: New test.

gcc/ChangeLog
gcc/ipa-fnsummary.c
gcc/testsuite/ChangeLog

index 0221945fe6cc683f40208fa7b226d92fc20ad2ef..75e3a4f3993234c6e6b4c0a94b104d99827107b8 100644 (file)
@@ -1,3 +1,12 @@
+2020-04-04  Jan Hubicka  <hubicka@ucw.cz>
+
+       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  <jakub@redhat.com>
 
        PR rtl-optimization/94468
index d96c8e9b03c2d85b1d1b560a0e5bbfd9d66a3583..045a0ecf76689372d19e2f3b18257f43c446f0a3 100644 (file)
@@ -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,
index 427266a877f99d75f5c32aadef37385a8e98a700..36eb4ba108d26141d6e94933731fa324249346bd 100644 (file)
@@ -1,3 +1,8 @@
+2020-04-04  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR ipa/93940
+       * g++.dg/tree-ssa/pr93940.C: New test.
+
 2020-04-04  Jakub Jelinek  <jakub@redhat.com>
 
        PR rtl-optimization/94468