[Vectorizer] Support masking fold left reductions
authorAlejandro Martinez <alejandro.martinezvicente@arm.com>
Tue, 18 Jun 2019 08:09:00 +0000 (08:09 +0000)
committerAlejandro Martinez <alejandro@gcc.gnu.org>
Tue, 18 Jun 2019 08:09:00 +0000 (08:09 +0000)
commitbce29d65ebe1316d15ec7582a1d257ef1be163f7
tree5e31c8b01fcf9fd667adb0a813ad377f34961fae
parent9553f0d2216d4475d4d1afaa748b6b02f56c057b
[Vectorizer] Support masking fold left reductions

This patch adds support in the vectorizer for masking fold left reductions.
This avoids the need to insert a conditional assignement with some identity
value.

From-SVN: r272407
gcc/ChangeLog
gcc/config/aarch64/aarch64-sve.md
gcc/doc/md.texi
gcc/internal-fn.c
gcc/internal-fn.def
gcc/optabs.def
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/sve/fadda_1.c [new file with mode: 0644]
gcc/tree-vect-loop.c