On Wed, Jun 4, 2014 at 3:37 PM, Richard Biener <richard.guent...@gmail.com> wrote: > On Wed, Jun 4, 2014 at 3:17 PM, Yuri Rumyantsev <ysrum...@gmail.com> wrote: >> Hi All, >> >> Here is a simple fix for 61391 - missed a check that statement basic >> block is inside loop. With this fix test-case from bug is compiled >> successfully. >> >> Bootstrap and regression testing did not show any new failures. >> >> Is it OK for trunk? > > Ok.
Please also add the testcase. > Thanks, > Richard. > >> ChangeLog: >> >> 2014-06-04 Yuri Rumyantsev <ysrum...@gmail.com> >> >> PR tree-optimization/61319 >> * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that >> stmt belongs to loop.