Re: Identifying Chain of Recurrence

2015-05-29 Thread Bin.Cheng
On Fri, May 29, 2015 at 11:14 PM, Pritam Gharat wrote: > I am writing a Simple IPA Pass which is inserted after ipa-pta. This > pass identifies whether a chain of recurrence is built by gcc or not. > I have used tree_is_chrec(t) to check if t represents chain of > recurrence and function find_var_

Re: Identifying Chain of Recurrence

2015-05-29 Thread Pritam Gharat
I am writing a Simple IPA Pass which is inserted after ipa-pta. This pass identifies whether a chain of recurrence is built by gcc or not. I have used tree_is_chrec(t) to check if t represents chain of recurrence and function find_var_scev_info(bb, var) to obtain the scev information generated (wh

Re: Identifying Chain of Recurrence

2015-05-28 Thread Bin.Cheng
On Fri, May 29, 2015 at 12:41 PM, Pritam Gharat wrote: > GCC builds a chain of recurrence to capture a pattern in which an > array is accessed in a loop. Is there any function which identifies > that gcc has built a chain of recurrence? Is this information > associated to the gimple assignment whi

Identifying Chain of Recurrence

2015-05-28 Thread Pritam Gharat
GCC builds a chain of recurrence to capture a pattern in which an array is accessed in a loop. Is there any function which identifies that gcc has built a chain of recurrence? Is this information associated to the gimple assignment which accesses the array elements? Thanks, Pritam Gharat