Commit 7e2b7e23 by Martin Liska Committed by Martin Liska

Fix wrong parenthesis in inliner.

2020-01-10  Martin Liska  <mliska@suse.cz>

	PR ipa/93217
	* ipa-inline-analysis.c (offline_size): Make proper parenthesis
	encapsulation that was there before r280040.

From-SVN: r280103
parent 734efcdd
2020-01-10 Martin Liska <mliska@suse.cz>
PR ipa/93217
* ipa-inline-analysis.c (offline_size): Make proper parenthesis
encapsulation that was there before r280040.
2020-01-10 Richard Biener <rguenther@suse.de> 2020-01-10 Richard Biener <rguenther@suse.de>
PR middle-end/93199 PR middle-end/93199
......
...@@ -457,7 +457,7 @@ offline_size (struct cgraph_node *node, ipa_size_summary *info) ...@@ -457,7 +457,7 @@ offline_size (struct cgraph_node *node, ipa_size_summary *info)
&& node->can_remove_if_no_direct_calls_p ()) && node->can_remove_if_no_direct_calls_p ())
{ {
int prob = opt_for_fn (node->decl, param_comdat_sharing_probability); int prob = opt_for_fn (node->decl, param_comdat_sharing_probability);
return info->size * (100 - prob + 50) / 100; return (info->size * (100 - prob) + 50) / 100;
} }
} }
return 0; return 0;
......
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