diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-12-27 16:54:54 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-12-27 16:54:54 +0000 |
commit | cd8aa0d1a5e9547cf3d47ab3bd53f63ec3920b36 (patch) | |
tree | 8c26dff98ee27b49a1359fffaca1f64545c8327f /gcc/fortran/iresolve.c | |
parent | 049e64f8f19552ec75b6796223a8961038c24fcd (diff) | |
download | gcc-cd8aa0d1a5e9547cf3d47ab3bd53f63ec3920b36.zip gcc-cd8aa0d1a5e9547cf3d47ab3bd53f63ec3920b36.tar.gz gcc-cd8aa0d1a5e9547cf3d47ab3bd53f63ec3920b36.tar.bz2 |
Add missing target check for fully-masked fold-left reductions
The fold-left reduction code has a (rarely-used) fallback that handles
cases in which the loop is fully-masked and the target has no native
support for the reduction. The fallback includea a VEC_COND_EXPR
between the reduction vector and a safe value, so we should check
whether that VEC_COND_EXPR is supported.
2019-12-27 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vect-loop.c (vectorizable_reduction): Check whether the
target supports the required VEC_COND_EXPR operation before
allowing the fallback handling of masked fold-left reductions.
gcc/testsuite/
* gcc.target/aarch64/sve/mixed_size_10.c: New test.
From-SVN: r279742
Diffstat (limited to 'gcc/fortran/iresolve.c')
0 files changed, 0 insertions, 0 deletions