Re: Compute all gimple statements in which a var is used

2016-04-05 Thread Richard Biener
On April 5, 2016 5:03:54 PM GMT+02:00, Jeff Law wrote: >On 04/05/2016 08:59 AM, Cristina Georgiana Opriceana wrote: >> On Mon, Mar 28, 2016 at 10:55 PM, Richard Biener >> wrote: >>> On March 28, 2016 7:23:26 PM GMT+02:00, Cristina Georgiana Opriceana > wrote: Hello, In order to com

Re: Compute all gimple statements in which a var is used

2016-04-05 Thread Jeff Law
On 04/05/2016 08:59 AM, Cristina Georgiana Opriceana wrote: On Mon, Mar 28, 2016 at 10:55 PM, Richard Biener wrote: On March 28, 2016 7:23:26 PM GMT+02:00, Cristina Georgiana Opriceana wrote: Hello, In order to compute all the statements where a variable is used, is it enough to rely on the

Re: Compute all gimple statements in which a var is used

2016-04-05 Thread Cristina Georgiana Opriceana
On Mon, Mar 28, 2016 at 10:55 PM, Richard Biener wrote: > On March 28, 2016 7:23:26 PM GMT+02:00, Cristina Georgiana Opriceana > wrote: >>Hello, >> >>In order to compute all the statements where a variable is used, is it >>enough to rely on the SSA analysis? I tried to do something like this: >>

Re: Compute all gimple statements in which a var is used

2016-03-28 Thread Richard Biener
On March 28, 2016 7:23:26 PM GMT+02:00, Cristina Georgiana Opriceana wrote: >Hello, > >In order to compute all the statements where a variable is used, is it >enough to rely on the SSA analysis? I tried to do something like this: > >FOR_EACH_LOCAL_DECL (cfun, i, var) { >for (unsigned int