SSA alias representation

2008-02-27 Thread Fran Baena
> Symbols with their address taken are only renamed when they appear as > virtual operands. So, if you have: > > p_3 = (i_5 > 10) ? &a : &b > a = 4 > > notice that 'a' is never renamed in the LHS of the assignment. It's > renamed as a virtual operand: > > p_3 = (i_5 > 10) ? &a : &

Re: SSA alias representation

2008-02-26 Thread Diego Novillo
On Tue, Feb 26, 2008 at 04:44, Fran Baena <[EMAIL PROTECTED]> wrote: > if () > t_1 = & a_1;t_1 points-to { a_1 } > else > if () > t2_ = & b_1; t_2 points-to { b_1 } > else > t_3 = & c_1; t_3 points-to { c_1 } > > # t_4 = PHI > p_1 = t_4; p_1 and t_

Re: SSA alias representation

2008-02-26 Thread Fran Baena
> > When there are no symbols in the pointer's points-to set. > I am beginning to realize. But there is something it remains: 1) Once the ssa rename has been done, the alias analysis begins (points-to sets). Each version of a base pointer has associated its own points-to set? Like if () t_1 =

Re: SSA alias representation

2008-02-25 Thread Diego Novillo
On Mon, Feb 25, 2008 at 10:25, Fran Baena <[EMAIL PROTECTED]> wrote: > If a name tag is associated to a ssa name, ¿when does it make sense to > version a name tag? (If it does) When there are no symbols in the pointer's points-to set. Diego.

Re: SSA alias representation

2008-02-25 Thread Fran Baena
If a name tag is associated to a ssa name, ¿when does it make sense to version a name tag? (If it does) 2008/2/21, Diego Novillo <[EMAIL PROTECTED]>: > On 2/21/08 1:13 PM, Fran Baena wrote: > > 2008/2/21, Diego Novillo <[EMAIL PROTECTED]>: > >> On 2/19/08 2:27 PM, Fran Baena wrote: > >> > Hi e

Re: SSA alias representation

2008-02-21 Thread Diego Novillo
On 2/21/08 1:13 PM, Fran Baena wrote: 2008/2/21, Diego Novillo <[EMAIL PROTECTED]>: On 2/19/08 2:27 PM, Fran Baena wrote: > Hi everybody, > > i am studing how gcc carries out Alias Representation and some questions appear. > > For instance, given this code portion: > > if ( ... ) >

Re: SSA alias representation

2008-02-21 Thread Fran Baena
2008/2/21, Diego Novillo <[EMAIL PROTECTED]>: > On 2/19/08 2:27 PM, Fran Baena wrote: > > Hi everybody, > > > > i am studing how gcc carries out Alias Representation and some questions > appear. > > > > For instance, given this code portion: > > > > if ( ... ) > >p = &a; > > else >

Re: SSA alias representation

2008-02-21 Thread Diego Novillo
On 2/19/08 2:27 PM, Fran Baena wrote: Hi everybody, i am studing how gcc carries out Alias Representation and some questions appear. For instance, given this code portion: if ( ... ) p = &a; else if ( ... ) p = &b; else p = &c; a = 5; b = 3; d = *p4; My questions are

SSA alias representation

2008-02-19 Thread Fran Baena
Hi everybody, i am studing how gcc carries out Alias Representation and some questions appear. For instance, given this code portion: if ( ... ) p = &a; else if ( ... ) p = &b; else p = &c; a = 5; b = 3; d = *p4; My questions are: - both p like *p need a Name Memory T