diff options
author | Martin Liska <mliska@suse.cz> | 2020-01-10 13:27:36 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2020-01-10 12:27:36 +0000 |
commit | 7e2b7e23358f50a0f83e4d1292538cbf0eb85073 (patch) | |
tree | b11fd991a6d51322b90a0b2d1dcedf683d49f6e6 /gcc/ipa-inline-analysis.c | |
parent | 734efcdda91645d6425f584b39362cf0c3af2587 (diff) |
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
Diffstat (limited to 'gcc/ipa-inline-analysis.c')
-rw-r--r-- | gcc/ipa-inline-analysis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-inline-analysis.c b/gcc/ipa-inline-analysis.c index 3c71aab4ecb..148efbc09ef 100644 --- a/gcc/ipa-inline-analysis.c +++ b/gcc/ipa-inline-analysis.c @@ -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; |