Commit 59d27026 by Martin Liska Committed by Martin Liska

Fix scaling of a sreal number.

2018-09-25  Martin Liska  <mliska@suse.cz>

	* ipa-fnsummary.c (estimate_node_size_and_time): Scale by two
	integers and not by a float value.

From-SVN: r264563
parent 5433e401
2018-09-25 Martin Liska <mliska@suse.cz> 2018-09-25 Martin Liska <mliska@suse.cz>
* ipa-fnsummary.c (estimate_node_size_and_time): Scale by two
integers and not by a float value.
2018-09-25 Martin Liska <mliska@suse.cz>
PR fortran/87394 PR fortran/87394
* dbgcnt.c (dbg_cnt_process_single_pair): Return false * dbgcnt.c (dbg_cnt_process_single_pair): Return false
instead of NULL. instead of NULL.
......
...@@ -2742,7 +2742,7 @@ estimate_node_size_and_time (struct cgraph_node *node, ...@@ -2742,7 +2742,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 * 0.99) >= -1); gcc_checking_assert ((nonspecialized_time - time * 99 / 100) >= -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