From patchwork Tue Aug 13 18:26:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 266903 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 5C9F52C0132 for ; Wed, 14 Aug 2013 04:27:20 +1000 (EST) 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:cc:subject:content-type; q=dns; s=default; b=FBEdqX5Yrme3OcnFPYYgiBfvnDv7qmgMNTKepYjDqvv 4kILj2b7FLllQ0mQ+SP6ZlrGKk+UevRTAQnrc4ujvX2io3/ggk13Pcr+Svlgp8Lz D4J19TZQeADBRSy0MqKRXlrl0ibdO0b3Eh7hzIPsLzTeenulEubV87aY28hf79p0 = 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:cc:subject:content-type; s=default; bh=Ae0nh9bg21zZOUJ4Ktoq+Uta0UY=; b=TpSLA0A5VDIW58IAv S/eQ+Shl+NdxuOAK8/7qs0nJj+uPB6dOl1ZPTI+NmFyQTpJQYsUxlqQJ6GpfPHAE N2bzABP2+3Iz8c2M4lFzKkG8+QtOXK2ZnY4yDB69ldrc8Ngqg59UO8V4gH16JSRU vjFHMfhHatWmKek2rfHIpbZtWc= Received: (qmail 2365 invoked by alias); 13 Aug 2013 18:27:03 -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 2342 invoked by uid 89); 13 Aug 2013 18:27:03 -0000 X-Spam-SWARE-Status: No, score=-7.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 13 Aug 2013 18:27:02 +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 r7DIR0cr022034 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Aug 2013 14:27:01 -0400 Received: from Mair.local (vpn-48-148.rdu2.redhat.com [10.10.48.148]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r7DIQxOw026312; Tue, 13 Aug 2013 14:27:00 -0400 Message-ID: <520A7A73.5050203@redhat.com> Date: Tue, 13 Aug 2013 14:26:59 -0400 From: Vladimir Makarov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: GCC Patches CC: Xingxing Pan Subject: patch to fix a typo in ira.c X-Virus-Found: No Xingxing Pan found a typo in IRA code. Here is the patch to fix it. The patch was bootstrapped on x86/x86-64. I did not find code generation difference on x86/x86-64, s390, ppc, and arm on variety tests. The code might make some small difference on other targets though. Committed as rev. 201699. 2013-08-13 Vladimir Makarov * ira.c (setup_class_translate_array): Use aclass instead of cl for classes not fully covered by allocno classes. Index: ira.c =================================================================== --- ira.c (revision 201544) +++ ira.c (working copy) @@ -1111,8 +1111,8 @@ setup_class_translate_array (enum reg_cl min_cost = INT_MAX; for (mode = 0; mode < MAX_MACHINE_MODE; mode++) { - cost = (ira_memory_move_cost[mode][cl][0] - + ira_memory_move_cost[mode][cl][1]); + cost = (ira_memory_move_cost[mode][aclass][0] + + ira_memory_move_cost[mode][aclass][1]); if (min_cost > cost) min_cost = cost; }