From patchwork Fri Jan 10 12:26:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 1221044 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-517090-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=w3pRYVV5; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47vMfz43hMz9sPn for ; Fri, 10 Jan 2020 23:26:51 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; q=dns; s= default; b=I4hJojix+8G6O+up/ZNgkHu7GuagqwdkaplPfMl3Tn/v7E6lJjiPj KFtHLPceVm5ruCOj6uIYZt3fURUf8bl7Vzfw/WB1kzN5+ah1f8xTa8eLnvEovI47 m2G/F4rYb8Ge3tCPyjit8O/L/pJYe16NSx94GoQgitADqM654CMFqQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :subject:to:message-id:date:mime-version:content-type; s= default; bh=MDIwxu6a6SqrU7q6N3Ck/UjyS88=; b=w3pRYVV5RdP9YIjRvn7g G24/p6lTSBxreuoo/h9+KCDHT29+TgkFhCFV9BbO/R92DcSY0PsO4dv5194Jlqrc Elv3kkL8RAiYDXWBZvW3bMWxZgw8RZHIqefwyynlk539MNJLNzsDYM03ZrxWjqiS LthwqtcKCTGB7v0c/wqs59E= Received: (qmail 395 invoked by alias); 10 Jan 2020 12:26:44 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 387 invoked by uid 89); 10 Jan 2020 12:26:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.1 spammy=offline_size X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Jan 2020 12:26:42 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 907E4AEE8 for ; Fri, 10 Jan 2020 12:26:40 +0000 (UTC) From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH][OBVIOUS] Fix wrong parenthesis in inliner. To: gcc-patches@gcc.gnu.org Message-ID: Date: Fri, 10 Jan 2020 13:26:40 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 X-IsSubscribed: yes Hi. This restores parenthesis to before r280040. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. And fixes the issue for ppc64le-linux-gnu. Thanks, Martin gcc/ChangeLog: 2020-01-10 Martin Liska PR ipa/93217 * ipa-inline-analysis.c (offline_size): Make proper parenthesis encapsulation that was there before r280040. --- gcc/ipa-inline-analysis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;