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?

 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.

Attachment: patch
Description: Binary data

Reply via email to