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: [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[1];
> };
> 
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.


Diego.


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