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
This commit is contained in:
Martin Liska 2020-01-10 13:27:36 +01:00 committed by Martin Liska
parent 734efcdda9
commit 7e2b7e2335
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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>
PR middle-end/93199

View File

@ -457,7 +457,7 @@ offline_size (struct cgraph_node *node, ipa_size_summary *info)
&& node->can_remove_if_no_direct_calls_p ())
{
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;