diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2017-08-16 07:51:13 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2017-08-16 07:51:13 +0000 |
commit | 963aeaad25122bc507f9c72b9af6fc13cbeccde4 (patch) | |
tree | 9c24e2074a1675f8b8a339be48ef9450a724feaf /gcc/tree-ssa-loop-ch.c | |
parent | 60e095de004cd024b67875f3c1d2a382feba7cce (diff) | |
download | gcc-963aeaad25122bc507f9c72b9af6fc13cbeccde4.zip gcc-963aeaad25122bc507f9c72b9af6fc13cbeccde4.tar.gz gcc-963aeaad25122bc507f9c72b9af6fc13cbeccde4.tar.bz2 |
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.
From-SVN: r251117
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
0 files changed, 0 insertions, 0 deletions