This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r251117 - in /trunk/gcc: ChangeLog testsuite/Ch...
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 16 Aug 2017 07:51:14 -0000
- Subject: r251117 - in /trunk/gcc: ChangeLog testsuite/Ch...
Author: rsandifo
Date: Wed Aug 16 07:51:13 2017
New Revision: 251117
URL: https://gcc.gnu.org/viewcvs?rev=251117&root=gcc&view=rev
Log:
PR81815: Invalid conditional reduction
We weren't checking whether the phi in a conditional reduction was
used by the condition itself (which isn't a case we handle).
2017-08-11 Richard Sandiford <richard.sandiford@linaro.org>
gcc/
PR tree-optimization/81835
* tree-vect-loop.c (vect_is_simple_reduction): Simply checks for
the phi SSA_NAME. Check that the condition in a COND_EXPR does
not depend on the phi.
gcc/testsuite/
PR tree-optimization/81835
* gcc.dg/vect/pr81815.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/vect/pr81815.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vect-loop.c