Re: [PATCH PR78574]Fix infinite recursion in find_deriving_biv_for_expr

2016-11-30 Thread Richard Biener
On Wed, Nov 30, 2016 at 2:54 PM, Bin Cheng wrote: > Hi, > Loop header PHI defining IV(biv) may not be identified as biv because its > increment statement is in (irreducible) inner loop. Function > find_deriving_biv_for_expr doesn't take this into consideration and runs into > infinite recursio

[PATCH PR78574]Fix infinite recursion in find_deriving_biv_for_expr

2016-11-30 Thread Bin Cheng
Hi, Loop header PHI defining IV(biv) may not be identified as biv because its increment statement is in (irreducible) inner loop. Function find_deriving_biv_for_expr doesn't take this into consideration and runs into infinite recursion. The patch fixes this issue by skipping such loop header