Hi All,

Here is a fix for PR 61576 - additional test was added that block
containing reduction statement is predecessor of block containing phi
to choose the correct condition.

Bootstrap and regression testing did not show any new failures.

Is it OK for trunk?

gcc/ChangeLog
2014-06-24  Yuri Rumyantsev  <ysrum...@gmail.com>

PR tree-optimization/61576
* tree-if-conv.c (is_cond_scalar_reduction): Add check that
basic block containing reduction statement is predecessor
of phi basi block.

gcc/testsuite/ChangeLog
* gcc.dg/torture/pr61576.c: New test.

Attachment: patch
Description: Binary data

Reply via email to