re PR tree-optimization/88182 (ICE in vectorizable_reduction, at tree-vect-loop.c...
authorRichard Biener <rguenther@suse.de>
Mon, 26 Nov 2018 15:37:35 +0000 (15:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 26 Nov 2018 15:37:35 +0000 (15:37 +0000)
commitef6e6914c8245ca24dae952bc054ae2328e751ab
tree99a95accf31970bfb7c5ca83ed8d9a15a5e4db6f
parentc393c7482fa7c6953f256724e8c6bd282d404e7c
re PR tree-optimization/88182 (ICE in vectorizable_reduction, at tree-vect-loop.c:6465)

2018-11-26  Richard Biener  <rguenther@suse.de>

PR tree-optimization/88182
* tree-vect-loop.c (vectorizable_reduction): Pick up single
correct reduc_def_info.
* tree-vect-slp.c (vect_analyze_slp_instance): Set
STMT_VINFO_REDUC_DEF of the first stmt.

libgomp/
* testsuite/libgomp.c++/pr88182.C: New testcase.

From-SVN: r266467
gcc/ChangeLog
gcc/tree-vect-loop.c
gcc/tree-vect-slp.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr88182.C [new file with mode: 0644]