Re: Finding a relevant place for a custom GCC pass

2014-01-06 Thread Richard Biener
Sandeep K Chaudhary wrote: >Thanks for the reply Marc ! > >If I place my pass before ccp then I guess I have to implement the >means to perform calculations on my own so that it can duplicate the >functionality of ccp, right? I will also look at the source code to >see if I can modify the source c

Re: Finding a relevant place for a custom GCC pass

2014-01-05 Thread Sandeep K Chaudhary
Thanks for the reply Marc ! If I place my pass before ccp then I guess I have to implement the means to perform calculations on my own so that it can duplicate the functionality of ccp, right? I will also look at the source code to see if I can modify the source code directly. Is pass_ccp in tree-

Re: Finding a relevant place for a custom GCC pass

2014-01-05 Thread Marc Glisse
On Sun, 5 Jan 2014, Sandeep K Chaudhary wrote: Hi guys, I want to write a pass which can find the calculations performed on the right hand side of each statement. In the below example - VAR1 = 1; VAR1++; VAR1 = VAR1 + 5; I want to be able to capture the equivalent stateme

Finding a relevant place for a custom GCC pass

2014-01-05 Thread Sandeep K Chaudhary
Hi guys, I want to write a pass which can find the calculations performed on the right hand side of each statement. In the below example - VAR1 = 1; VAR1++; VAR1 = VAR1 + 5; I want to be able to capture the equivalent statements i.e. VAR1 = 1; VAR1 = 2; VAR1 = 7; To ach