ipa-inline-analysis.c (do_estimate_edge_time): Relax check for ipa profiles.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 13 Nov 2019 22:14:24 +0000 (23:14 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 13 Nov 2019 22:14:24 +0000 (22:14 +0000)
* ipa-inline-analysis.c (do_estimate_edge_time): Relax
check for ipa profiles.

From-SVN: r278179

gcc/ChangeLog
gcc/ipa-inline-analysis.c

index 42229be0f1422c7c81e83edac9e501858855465e..a5d97b896a6d954d617b66aee192942b3aaefb07 100644 (file)
@@ -1,3 +1,8 @@
+2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
+
+       * ipa-inline-analysis.c (do_estimate_edge_time): Relax
+       check for ipa profiles.
+
 2019-11-13  Jan Hubicka  <hubicka@ucw.cz>
 
        PR c++/92421
index b45063b224d52c5c5284bb70a34b363d2f745617..bfcd749aac980b8e83f24c1fafd692be9aef9ea1 100644 (file)
@@ -210,7 +210,8 @@ do_estimate_edge_time (struct cgraph_edge *edge)
          time = e->entry.time;
          nonspec_time = e->entry.nonspec_time;
          hints = e->entry.hints;
-         if (flag_checking)
+         if (flag_checking
+             && !edge->callee->count.ipa_p ())
            {
              sreal chk_time, chk_nonspec_time;
              int chk_size, chk_min_size;