This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
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