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]: Easy way to get default def of a variable?


On Thu, 2003-06-05 at 00:38, Daniel Berlin wrote:
> >>
> >>
> > We now connect them to empty_stmt_expr.  Do you want to connect them to
> > this table so that we can traverse that table to look for live-
> > on-entry
> > or uninitialized uses?  I guess we could do that.
> 
> Well, remember, i want the table because right now i have to take a 
> use, and walk the entire def chain backwards, to get the default def's 
> version.
> This is expensive.
> 

Out of curiosity, why do you need the default def?  ie, why do you care
that a_2 is live on entry when you have a_4 = a_3 + 2, and a_3 has a
def?  we are suppose to be able to treat them like disjoint variables.
It just so happens we are going to try to merge them all into the same
memory location, but it may not happen that way. Its highly unlikely,
but there is no reason that every version of 'a' couldn't have a
different memory location and be unrelated.

Andrew


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