]> gcc.gnu.org Git - gcc.git/commit
Fix fold-left reduction vectorization with multiple stmt copies
authorRichard Biener <rguenther@suse.de>
Fri, 7 Jun 2024 07:41:11 +0000 (09:41 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 7 Jun 2024 09:40:56 +0000 (11:40 +0200)
commitdd6f942c266533b2f72610f354bc9184f8276beb
treeef1698d6ae7f88f0f6c3996a88dc6cc4347ac526
parent94997567ea5cbeb35571e94cf76d7f99ea3f9c43
Fix fold-left reduction vectorization with multiple stmt copies

There's a typo when code generating the mask operand for conditional
fold-left reductions in the case we have multiple stmt copies.  The
latter is now allowed for SLP and possibly disabled for non-SLP by
accident.

This fixes the observed run-FAIL for
gcc.dg/vect/vect-cond-reduc-in-order-2-signed-zero.c with AVX512
and 256bit sized vectors.

* tree-vect-loop.cc (vectorize_fold_left_reduction): Fix
mask vector operand indexing.
gcc/tree-vect-loop.cc
This page took 0.054888 seconds and 5 git commands to generate.