This is the mail archive of the gcc-patches@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]: PRE updates


On Wed, 2003-06-11 at 10:04, Andrew MacLeod wrote:

> OK, I was giving it to dan to try, maybe it would have died.
> 
It may have worked, actually.  create_var_ann() is letting SSA_NAMES
through, but it then goes on to create the annotation on the SSA_NAME
itself, not the VAR_DECL.  I'll fix that.

> Well, how does that has_real_ref work then? that means *all* ssa_names
> of a particular variable which occur in PHI nodes is going to be in the
> list for the coalescer even if only one of them is actually referenced? 
> thats doesn't seem right.
> 
Then we do need different annotations for SSA_NAMEs and VAR_DECLs. 
Currently, the has_real_ref bit will be set if the VAR_DECL is in at
least one real operand.  So, yes, all SSA_NAMEs will have the same
'has_real_ref' attribute.

In looking at var_ann_d, it seems that this is the only field that
should apply to SSA_NAMEs.  What about 'partition' and 'root_index'? 
Those were also _DECL attributes, right?  Or do we need to have them
separate for every SSA_NAME of the same _DECL?


Diego.


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