From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22191 invoked by alias); 4 Jun 2009 22:24:39 -0000 Received: (qmail 22183 invoked by uid 22791); 4 Jun 2009 22:24:39 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Jun 2009 22:24:32 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n54MOVP3010708; Thu, 4 Jun 2009 18:24:31 -0400 Received: from omfg.slc.redhat.com (vpn-12-156.rdu.redhat.com [10.11.12.156]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n54MOUPk026186; Thu, 4 Jun 2009 18:24:30 -0400 Message-ID: <4A2849BA.9060609@redhat.com> Date: Thu, 04 Jun 2009 22:24:00 -0000 From: Jeff Law User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Steven Bosscher CC: GCC Mailing List Subject: Re: From regno to pseudo? References: <571f6b510906030900l48dfbbf0t228368c5a6a8b0cc@mail.gmail.com> In-Reply-To: <571f6b510906030900l48dfbbf0t228368c5a6a8b0cc@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00077.txt.bz2 Steven Bosscher wrote: > Hello, > > Is there a way to get the REG for a given regno? I am building a > register renumbering map that is just a pair of unsigned int > , but I can't figure out how to get the REG for > new_regno without remembering a pointer to it myself. Is there an > easier/better way? > > Ciao! > Steven > regno_reg_rtx[pseudo] If you're dealing with a hard register, try ORIGINAL_REGNO Jeff