Re: SET_DEF invalidate the def-use chain.

2011-05-18 Thread Richard Guenther
On Wed, May 18, 2011 at 6:55 PM, Feng LI wrote: > Hi Richard, > > a_2 is used in g1 already, I don't know how this data structure is > managed and afraid that it'll be freed twice if you also use it in the > newly inserted stmt. Do you think it'll be safe here? Of course it is. SSA names can be

Re: SET_DEF invalidate the def-use chain.

2011-05-18 Thread Feng LI
Hi Richard, a_2 is used in g1 already, I don't know how this data structure is managed and afraid that it'll be freed twice if you also use it in the newly inserted stmt. Do you think it'll be safe here? Feng On Wed, May 18, 2011 at 6:10 PM, Richard Guenther wrote: > On Wed, May 18, 2011 at 5:01

Re: SET_DEF invalidate the def-use chain.

2011-05-18 Thread Richard Guenther
On Wed, May 18, 2011 at 5:01 PM, Feng LI wrote: > Hi, > > I have the code like: >  a_2 = 5;                         g1 >  b_3 = 6;                         g2 >  d_4 = a_2 + b_3;            g3 > > And I'd like to insert "tmp.globe = a_2" just after the definition of > a_2 (after g1), so that the co