From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12533 invoked by alias); 22 Oct 2009 13:02:53 -0000 Received: (qmail 12464 invoked by uid 22791); 22 Oct 2009 13:02:52 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Oct 2009 13:02:47 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 933EE290050; Thu, 22 Oct 2009 15:02:45 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uvlzXsqY1noX; Thu, 22 Oct 2009 15:02:39 +0200 (CEST) Received: from [192.168.1.2] (83-152-230-157.rev.libertysurf.net [83.152.230.157]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 02F5C290006; Thu, 22 Oct 2009 15:02:39 +0200 (CEST) From: Eric Botcazou To: Bernd Schmidt Subject: Re: regrename speedup Date: Thu, 22 Oct 2009 13:09:00 -0000 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) Cc: gcc-patches@gcc.gnu.org References: <4AD9CEF2.50908@t-online.de> In-Reply-To: <4AD9CEF2.50908@t-online.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200910221504.37462.ebotcazou@adacore.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg01417.txt.bz2 > PR rtl/38582 PR rtl-opt (or PR rtl-optimization). > * regrename.c (struct du_head): New structure; some elements moved > from... > (struct du_chain): ... this one. > (open_chains, closed_chains): Now of type struct du_head *. > (do_replace): Accept du_head argument, not du_chain. All callers > changed. Modified code to match new data structures. > (build_def_use): Return a list of du_head structures. Modified code > to match new data structures. > (dump_def_use_chain): Accept du_head argument, not du_chain. All > callers changed. Modified code to match new data structures. > (merge_overlapping_regs): Accept du_head argument, not du_chain. All > callers changed. Modified code to match new data structures. > (scan_rtx_reg): Change type of this_regno and this_nregs to unsigned. > Allocate a du_head structure as well as a du_chain when creating a > new chain. Modified other code to match new data structures. OK with the trailing spaces removed in @@ -439,8 +468,8 @@ scan_rtx_reg (rtx insn, rtx *loc, enum r for (p = &open_chains; *p;) { - struct du_chain *this_du = *p; - + struct du_head *head = *p; + /* Check if the chain has been terminated if it has then skip to the next chain. -- Eric Botcazou