From patchwork Thu Dec 18 21:53:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 422668 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id ADFA61400B7 for ; Fri, 19 Dec 2014 08:53:31 +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 :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=cAsLJWUfcKdt3AExy7PrtfxKDFOQ1IT2qU6vk2piLcdl6g DiL04x+uoqZ6oTAF71pARcTGS2ih0BrdD5mwsyEFnc18B/t6kou+CODtmFa4EPyt mu7C3Vf+EfntXM4fhP/qqX9vhsAvvTR7R9/OmNntu3eVZdeIkRRNGK+0paDVM= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=sknka/Y+EROVC6nrinIjP7CrkbE=; b=FISD5roZzklBdCwpYHUW CEYMhBrVmErPSa5GoF3Ip6oiITkqAS6HwoPkCt0aw1Cgl107gZ2PGYWzfQWaNcS+ sK7b4WC0h24CNWnXZblrJ7CrUqkWyCpJPH067n4kyWEslr7l5UYkllRFXCx/5RS2 Sz5FfDWTV/ZcNSKHeMlRCyA= Received: (qmail 26151 invoked by alias); 18 Dec 2014 21:53:23 -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 26138 invoked by uid 89); 18 Dec 2014 21:53:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 18 Dec 2014 21:53:21 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBILrKtr002839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 18 Dec 2014 16:53:20 -0500 Received: from VMBP.local (vpn-58-85.rdu2.redhat.com [10.10.58.85]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBILrJV5012694 for ; Thu, 18 Dec 2014 16:53:19 -0500 Message-ID: <54934CCF.4020400@redhat.com> Date: Thu, 18 Dec 2014 16:53:19 -0500 From: Vladimir Makarov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: GCC Patches Subject: patch fixing a typo in LRA X-IsSubscribed: yes The following patch fixes a typo in usage of register_move_cost. For most targets, the change does not matter as the cost function is symmetric relative to args. The patch was bootstrapped on x86-64. Committed as rev. 218875. 2014-12-18 Vladimir Makarov * lra-constraints.c (lra-constraints.c): Exchange places of sclass and dclass. Index: lra-constraints.c =================================================================== --- lra-constraints.c (revision 218835) +++ lra-constraints.c (working copy) @@ -3197,7 +3197,7 @@ simple_move_p (void) && (sclass = get_op_class (src)) != NO_REGS /* The backend guarantees that register moves of cost 2 never need reloads. */ - && targetm.register_move_cost (GET_MODE (src), dclass, sclass) == 2); + && targetm.register_move_cost (GET_MODE (src), sclass, dclass) == 2); } /* Swap operands NOP and NOP + 1. */