From patchwork Fri May 18 19:13:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 160149 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 83F09B6FBB for ; Sat, 19 May 2012 05:13:48 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1337973228; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=yaJAjCv 51LSnxU/yd8HAAc6bEW4=; b=SKUkMOHtgLa4HHLVG7cccfq3C+SmF2gYNqotja2 6Pl4e1KyNfoJ7atOQw3tokduK9/awCeO6hUKveqOBZo3IObrQmh3mUdimoVYiS21 HMGdvpqA18aWmCEwiAog4RysHjKKWlBrWlaOqtNwXniW1OJ9r1WGbiUE5GP7Pk0F Rxe0= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=uuiMvIqDIe5oFxHQwsg+DfXuDfBxZnP82zprdMvnED8mLup4d5xHhgEl77nqk/ bJ+y7vxVwZULTIxj8C/wgvDi505CBWQUykMG5IwjqdzQUb/IVlRHhqOuT4dywLzN IrH7Kn09ctphnFoP4siyMTkC+qpzFOtQFMMUs+w/yeCeg=; Received: (qmail 22033 invoked by alias); 18 May 2012 19:13:36 -0000 Received: (qmail 21909 invoked by uid 22791); 18 May 2012 19:13:35 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 18 May 2012 19:13:09 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4IJD8jp010096 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 18 May 2012 15:13:08 -0400 Received: from ivy.local (ovpn-113-31.phx2.redhat.com [10.3.113.31]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q4IJD6ZP001690 for ; Fri, 18 May 2012 15:13:08 -0400 Message-ID: <4FB69F42.8030003@redhat.com> Date: Fri, 18 May 2012 15:13:06 -0400 From: Vladimir Makarov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: GCC Patches Subject: [lra] a tiny patch to improve pseudos splitting X-IsSubscribed: yes 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 The following patch improves pseudos splitting. The patch was successfully bootstrapped on x86/x86-64. Committed as rev. 187656. 2012-05-18 Vladimir Makarov * lra-constraints.c (need_for_split_p): Split only when there are at least 3 potential reloads instead of 2. Index: lra-constraints.c =================================================================== --- lra-constraints.c (revision 187637) +++ lra-constraints.c (working copy) @@ -3894,7 +3894,7 @@ need_for_split_p (HARD_REG_SET potential { gcc_assert (reg_renumber[regno] >= 0); return ((TEST_HARD_REG_BIT (potential_reload_hard_regs, reg_renumber[regno]) - && usage_insns[regno].reloads_num + 1 < reloads_num) + && usage_insns[regno].reloads_num + 2 < reloads_num) || need_for_call_save_p (regno)); }