This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] CFG hooks for rtl/tree specificities


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]