diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-11-17 18:43:24 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-11-17 17:43:24 +0000 |
commit | 3860f31db1e1b155532fb96a3e703b6b9e780753 (patch) | |
tree | 5a4af45ce4f0a1c826dba2a82de2f99cd7a07a68 /gcc | |
parent | 35cd23ebb6d05e1325bd165679be44192f51ba05 (diff) | |
download | gcc-3860f31db1e1b155532fb96a3e703b6b9e780753.zip gcc-3860f31db1e1b155532fb96a3e703b6b9e780753.tar.gz gcc-3860f31db1e1b155532fb96a3e703b6b9e780753.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa-fnsummary.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index da0066e..c24c0a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2017-11-17 Jan Hubicka <hubicka@ucw.cz> + * ipa-fnsummary.c (estimate_node_size_and_time): Be more tolerant for + roundoff errors. + +2017-11-17 Jan Hubicka <hubicka@ucw.cz> + * ipa-cp.c (update_profiling_info): Handle conversion to local profile. * tree-cfg.c (execute_fixup_cfg): Do fixup same way as inliner does. diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 1b99194..4b5cd70 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 |