From: Jan Hubicka Date: Fri, 17 Nov 2017 17:43:24 +0000 (+0100) Subject: ipa-fnsummary.c (estimate_node_size_and_time): Be more tolerant for roundoff errors. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3860f31db1e1b155532fb96a3e703b6b9e780753;p=gcc.git ipa-fnsummary.c (estimate_node_size_and_time): Be more tolerant for roundoff errors. * ipa-fnsummary.c (estimate_node_size_and_time): Be more tolerant for roundoff errors. From-SVN: r254886 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da0066e0054..c24c0a5f343 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-11-17 Jan Hubicka + + * ipa-fnsummary.c (estimate_node_size_and_time): Be more tolerant for + roundoff errors. + 2017-11-17 Jan Hubicka * ipa-cp.c (update_profiling_info): Handle conversion to local diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 1b99194a267..4b5cd70ea85 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -2744,7 +2744,7 @@ estimate_node_size_and_time (struct cgraph_node *node, gcc_checking_assert (time >= 0); /* nonspecialized_time should be always bigger than specialized time. Roundoff issues however may get into the way. */ - gcc_checking_assert ((nonspecialized_time - time) >= -1); + gcc_checking_assert ((nonspecialized_time - time * 0.99) >= -1); /* Roundoff issues may make specialized time bigger than nonspecialized time. We do not really want that to happen because some heurstics