This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] How to increase PHI capacity?
On Mon, 2003-08-04 at 16:04, Steven Bosscher wrote:
> AFAICT we allocate the phi args array as an integral part of the phi
> node itself, similar to how we allocate ops for tree_expr nodes:
Oh, right, how could I forget. Sorry about that.
But still, even if you create a new PHI node, all you need to do is
insert it in the phi_nodes() list for the basic block that contains it.
> struct tree_phi_node GTY(())
> struct tree_common common;
> tree result;
> int num_args;
> int capacity;
> struct phi_arg_d GTY ((length ("((tree)&%h)->phi.capacity"))) a;
Now I'm wondering if it wouldn't be better to make a a tree_vec so
that we can reallocate it independently of the PHI node itself.