From patchwork Fri Jul 19 14:32:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 1134110 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-505343-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="XCl3C6EV"; 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 45qtl83FP0z9s00 for ; Sat, 20 Jul 2019 00:32:50 +1000 (AEST) 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:subject:message-id:mime-version:content-type; q=dns; s= default; b=OOf7xNUgshke4gBHYcaJtULK4v9S+EtX63dAzjRVQaBby/WLEwR3h IDF1G+zYj826CSj6wb+/fXKnZOaiZ8htkeFLGjjF5WvMHgSFcLIVbSD4G11SM+WM C+excd6X3pRTXzk/seDITjzW9/rMmUNw52XH1Zz8pamJd4650+stp4= 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:subject:message-id:mime-version:content-type; s= default; bh=hAIlg/nvR7muPiFZmKBW0mYa51g=; b=XCl3C6EVReY3PLF/O+oL m/4evONYGE/sQEq48npRFeb1Bbwqx8z4yHb8/E/TmvHqomogtZGSNkK9i6sJmNQt BdIDNWwolxbeNAg+48jepTSwZGBFK7g8djxgpHObBt4j2hkSLF8IFL1MmCz5Ivsn dxHHjhvVVyPuakaMrZ5wE4k= Received: (qmail 118762 invoked by alias); 19 Jul 2019 14:32:43 -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 118754 invoked by uid 89); 19 Jul 2019 14:32:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS autolearn=ham version=3.3.1 spammy=honza X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jul 2019 14:32:42 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 74C4428264E; Fri, 19 Jul 2019 16:32:40 +0200 (CEST) Date: Fri, 19 Jul 2019 16:32:40 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Fix reversed conditional in recursive_inlining Message-ID: <20190719143240.s6zqzu5mygjuogvu@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Hi, this patch fixes bug in recursive_inlining noticed by Feng Xue. Bootstrapped/regtested x86_64-linux, comitted. Honza Index: ChangeLog =================================================================== --- ChangeLog (revision 273602) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2019-07-19 Jan Hubicka + + PR ipa/91194 + * ipa-inline.c (recursive_inlining): Fix limits check. + 2019-07-19 Richard Biener PR tree-optimization/91200 Index: ipa-inline.c =================================================================== --- ipa-inline.c (revision 273570) +++ ipa-inline.c (working copy) @@ -1504,7 +1504,7 @@ recursive_inlining (struct cgraph_edge * struct cgraph_node *cnode, *dest = curr->callee; if (!can_inline_edge_p (curr, true) - || can_inline_edge_by_limits_p (curr, true)) + || !can_inline_edge_by_limits_p (curr, true)) continue; /* MASTER_CLONE is produced in the case we already started modified