From patchwork Tue Jan 2 12:35:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 854531 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-469952-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="ady03Gpa"; 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 3z9tnJ3lV1z9t3h for ; Tue, 2 Jan 2018 23:35:13 +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:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=K9y51mGW1mzxDq73oCOGD53bLNy8o9Ux7AeCiwGf5u8C4AgVTs DpNukblbNSTIKh31h6iVJQ9li304fiIrnmtuxfNekDAWO5BQwSkgqznVXS5B4yKG 1SvLu0XuBL8io+kMlh+Vy2SuMwKFMl/w+7kmpiuMU7hKXBLASDvv1VNOk= 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:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=b++WBDEifEXbKqfthXNXhAl4gHg=; b=ady03Gpa3y9BVkwx5PqV VG0BA1/Qqum/riB1IgqTXa43erIF4X6MRhF5PLQ85M1bcIBTF6Xcjwj5XVFNymc3 L3X9S2UZYoORnHvHncbtO297VA4jtFAnPnu/S+lKJS+2lGmu+/0OGRtNKLOn8B+7 tzLvsqeDtEvbIygnK9rYlzM= Received: (qmail 33643 invoked by alias); 2 Jan 2018 12:35:05 -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 33631 invoked by uid 89); 2 Jan 2018 12:35:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=H*Ad:U*jh, Hx-languages-length:736 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; Tue, 02 Jan 2018 12:35:04 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 05D48AC68 for ; Tue, 2 Jan 2018 12:35:02 +0000 (UTC) Date: Tue, 2 Jan 2018 13:35:01 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org cc: Jan Hubicka Subject: [PATCH] Fix big_speedup_p "typo" Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Noticed by somebody else in a PR. Bootstrapped / tested on x86_64-unknown-linux-gnu, applied. Richard. 2018-01-02 Richard Biener * ipa-inline.c (big_speedup_p): Fix expression. Index: gcc/ipa-inline.c =================================================================== --- gcc/ipa-inline.c (revision 256068) +++ gcc/ipa-inline.c (working copy) @@ -691,7 +691,7 @@ big_speedup_p (struct cgraph_edge *e) sreal time = compute_uninlined_call_time (e, unspec_time); sreal inlined_time = compute_inlined_call_time (e, spec_time); - if (time - inlined_time * 100 + if ((time - inlined_time) * 100 > (sreal) (time * PARAM_VALUE (PARAM_INLINE_MIN_SPEEDUP))) return true; return false;