From patchwork Tue Nov 20 21:26:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 200523 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 81BB72C00A5 for ; Wed, 21 Nov 2012 08:34:28 +1100 (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=1354052069; 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=tnz/IUG ywPQbHzUcWNIsffQ4xT8=; b=WJW+IheG4ciZvgP3YRrbSl5ojb+E2F7VTc6gLmN N2UENM+XveoHegrtYecw/r9JyXUGnbVrfhWBRiLd92ovGiJGxnOIfeogToCpM03J nhCFRkzihqpT+1/sA2LAx/lGe5XJrG6QTj3/2jMa0ybE0Z6saNVarrxlqz8Fl5Z3 aQKA= 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=sXi5Yvuj6XZ4iLuHB3SSpy2gh7XaBxHdTdQaAoKBvZIKwGxTE60/DTgKrK73Nx gJ2kF4RB/2MFqk6V3m1totItF0Z9740mCZxCB8L6jyYnwWeFalwJD4Xspq4ABcp4 APNiE8untAwmcOljzF/hzmr0CVxIjtRMGFDsvd8l/3hwI=; Received: (qmail 14462 invoked by alias); 20 Nov 2012 21:34:11 -0000 Received: (qmail 14373 invoked by uid 22791); 20 Nov 2012 21:34:10 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, MAY_BE_FORGED, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS 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; Tue, 20 Nov 2012 21:34:03 +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 qAKLY2c6032326 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 Nov 2012 16:34:02 -0500 Received: from toll.usersys.redhat.com (unused [10.15.16.165] (may be forged)) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qAKLY2fT027351 for ; Tue, 20 Nov 2012 16:34:02 -0500 Message-ID: <50ABF597.2080705@redhat.com> Date: Tue, 20 Nov 2012 16:26:47 -0500 From: Vladimir Makarov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2 MIME-Version: 1.0 To: gcc-patches Subject: patch to fix PR55396 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 fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55396 The patch was successfully tested and bootstrapped on x886/x86-64. Committed as rev. 193678. 2012-11-20 Vladimir Makarov PR rtl-optimization/55396 * lra-constraints.c (get_reload_reg): Change class if it is different from reg class. Index: lra-constraints.c =================================================================== --- lra-constraints.c (revision 193677) +++ lra-constraints.c (working copy) @@ -425,7 +425,7 @@ get_reload_reg (enum op_type type, enum fprintf (lra_dump_file, " Reuse r%d for reload ", regno); print_value_slim (lra_dump_file, original, 1); } - if (rclass != new_class) + if (new_class != lra_get_allocno_class (regno)) change_class (regno, new_class, ", change", false); if (lra_dump_file != NULL) fprintf (lra_dump_file, "\n");