Swaroop Joshi <swaroop@xxxxxxxxxxxxxx> writes: > C code: > ... > p = &r; > *q = r; > ... > > produces GIMPLE: > ... > p = &r; > r.0 = r; > *q = r.0; > ... > > Now I want to extract tree r from r.0. > How can I do this ? If you are in SSA form, which is true of most of the GIMPLE passes, then once you have the variable you can call SSA_NAME_DEF_STMT to find the statement which sets the variable. Ian