Commit 3860f31d by Jan Hubicka Committed by Jan Hubicka

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
parent 35cd23eb
2017-11-17 Jan Hubicka <hubicka@ucw.cz> 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 * ipa-cp.c (update_profiling_info): Handle conversion to local
profile. profile.
* tree-cfg.c (execute_fixup_cfg): Do fixup same way as inliner does. * tree-cfg.c (execute_fixup_cfg): Do fixup same way as inliner does.
...@@ -2744,7 +2744,7 @@ estimate_node_size_and_time (struct cgraph_node *node, ...@@ -2744,7 +2744,7 @@ estimate_node_size_and_time (struct cgraph_node *node,
gcc_checking_assert (time >= 0); gcc_checking_assert (time >= 0);
/* nonspecialized_time should be always bigger than specialized time. /* nonspecialized_time should be always bigger than specialized time.
Roundoff issues however may get into the way. */ 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 /* Roundoff issues may make specialized time bigger than nonspecialized
time. We do not really want that to happen because some heurstics time. We do not really want that to happen because some heurstics
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment