Fix wrong parenthesis in inliner.
authorMartin Liska <mliska@suse.cz>
Fri, 10 Jan 2020 12:27:36 +0000 (13:27 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 10 Jan 2020 12:27:36 +0000 (12:27 +0000)
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

gcc/ChangeLog
gcc/ipa-inline-analysis.c

index f93e9190c4606f322d285645a387ae9f9b9786e4..81d8e5c3e29925d82325f7bcd3c2acbf9a3a657c 100644 (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
index 3c71aab4ecb92293ef3a3dc8453dac0b3c139c4d..148efbc09ef033f9565e06c3aed1b1a12df2ab50 100644 (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;