From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11824 invoked by alias); 2 Apr 2003 12:23:17 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 11773 invoked from network); 2 Apr 2003 12:23:14 -0000 Received: from unknown (HELO gauvain.u-strasbg.fr) (130.79.74.5) by sources.redhat.com with SMTP; 2 Apr 2003 12:23:14 -0000 Received: from pop by gauvain.u-strasbg.fr with local (Exim 3.36 #1 (Debian)) id 190hGp-0000sG-00; Wed, 02 Apr 2003 14:23:11 +0200 Date: Wed, 02 Apr 2003 14:19:00 -0000 To: Diego Novillo Cc: Jan Hubicka , "gcc@gcc.gnu.org" Subject: Re: [RFC] CFG hooks for rtl/tree specificities Message-ID: <20030402122311.GA2708@gauvain.u-strasbg.fr> References: <20030401145007.GA25362@gauvain.u-strasbg.fr> <20030401154607.GF904@kam.mff.cuni.cz> <20030401161112.GD24512@gauvain.u-strasbg.fr> <1049214194.1149.26.camel@shadowfax> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1049214194.1149.26.camel@shadowfax> User-Agent: Mutt/1.4i From: =?iso-8859-1?Q?Pop_S=E9bastian?= X-SW-Source: 2003-04/txt/msg00072.txt.bz2 On Tue, Apr 01, 2003 at 11:23:12AM -0500, Diego Novillo wrote: > Note that the edge insertion functions in tree-cfg.c already split > edges. If you are going to implement a split_edge routine, could you > update bsi_commit_first_edge_insert? > Yes. That's exactly from where I have took the code for the tree level split_edge. A question: what do you think about extending the basic block iterator (bsi) to handle a union {tree, rtl}, then use iterators instead of rtx-es in functions like split_block (basic_block, rtx) ? The implementation (ie. tree_split_block and rtl_split_block) will decide wheter the iterator contains a tree or an rtx (C poor man's polymorphism). Sebastian