[Vectorizer] Support masking fold left reductions

Programming / Compilers / GCC - alejandro [138bc75d-0d04-0410-961f-82ee72b054a4] - 18 June 2019 08:09 EDT

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.

26fb5106155 [Vectorizer] Support masking fold left reductions
gcc/ChangeLog | 14 ++++++++++
gcc/config/aarch64/aarch64-sve.md | 10 +++----
gcc/doc/md.texi | 5 ++++
gcc/internal-fn.c | 5 ++++
gcc/internal-fn.def | 3 +++
gcc/optabs.def | 1 +
gcc/testsuite/ChangeLog | 3 +++
gcc/testsuite/gcc.target/aarch64/sve/fadda_1.c | 20 ++++++++++++++
gcc/tree-vect-loop.c | 36 +++++++++++++++++++++++---
9 files changed, 89 insertions(+), 8 deletions(-)

Upstream: gcc.gnu.org


  • Share