[RFC] CFG hooks for rtl/tree specificities

Pop Sébastian pop@gauvain.u-strasbg.fr
Wed Apr 2 14:19:00 GMT 2003


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



More information about the Gcc mailing list