mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-22 03:40:26 +08:00
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:
parent
734efcdda9
commit
7e2b7e2335
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user