]> gcc.gnu.org Git - gcc.git/commit
re PR tree-optimization/65930 (Reduction with sign-change not handled)
authorRichard Biener <rguenther@suse.de>
Tue, 29 Oct 2019 09:33:49 +0000 (09:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 29 Oct 2019 09:33:49 +0000 (09:33 +0000)
commitb7ff7cef5005721e78d6936bed3ae1c059b4e8d2
tree55dfad525476996c65b132bf86f8ad06525e797d
parentbc73c4c24daec96ad3e7ff904645c3095a4febe9
re PR tree-optimization/65930 (Reduction with sign-change not handled)

2019-10-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/65930
* tree-vect-loop.c (check_reduction_path): Relax single-use
check allowing out-of-loop uses.
(vect_is_simple_reduction): SLP reduction chains cannot have
intermediate stmts used outside of the loop.
(vect_create_epilog_for_reduction): The adjustment might need
to be converted.
(vectorizable_reduction): Annotate live stmts of the reduction
chain with STMT_VINFO_REDUC_DEF.
* tree-vect-stms.c (process_use): Remove no longer true asserts.

* gcc.dg/vect/pr65930-1.c: New testcase.

From-SVN: r277566
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr65930-1.c [new file with mode: 0644]
gcc/tree-vect-loop.c
gcc/tree-vect-stmts.c
This page took 0.070608 seconds and 5 git commands to generate.