On Wed, Jun 18, 2014 at 12:47 PM, Yuri Rumyantsev <ysrum...@gmail.com> wrote:
> Hi All,
>
> Here is a fix for PR 61518 - additional test was added to reject
> transformation if reduction variable is not used in reduction
> statement only since such reduction will not be vectorized.
>
> Bootstrap and regression testing did not show any new failures.
>
> Is it OK for trunk?

Ok.

Thanks,
Richard.

>  gcc/ChangeLog
> 2014-06-18  Yuri Rumyantsev  <ysrum...@gmail.com>
>
> PR tree-optimization/61518
> * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
> reduction var is used in reduction stmt or phi-function only.
>
> gcc/testsuite/ChangeLog
> * gcc.dg/torture/pr61518.c: New test.

Reply via email to