On Wed, Feb 10, 2010 at 12:26, amonakov at gcc dot gnu dot org <gcc-bugzi...@gcc.gnu.org> wrote: > I don't see how this patch makes simple_iv call from number_of_iterations_exit > return true for j_20. Could you please kindly explain?
We used to analyze the second scop after the code generation of the first one. In that context, the scalar evolution analysis failed to analyze the code containing scalar computations stored and read from arrays with 1 element (introduced by the code generation and analysis part). We now analyze all the scops before code generating them: thus, we don't have to invalidate the scalar evolution hash tables between the analysis of two scops.