re PR tree-optimization/86991 (ICE in vectorizable_reduction, at tree-vect-loop.c...
authorRichard Biener <rguenther@suse.de>
Tue, 13 Nov 2018 16:14:37 +0000 (16:14 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 13 Nov 2018 16:14:37 +0000 (16:14 +0000)
commit53467b5543100b84ad1bb2392efd989639f01eca
tree297025c0e6133ae53350d9dc0db72386e84fa96b
parentbbeeac91f96bdcbc3eb40ec68c1fd8cf5d4a038d
re PR tree-optimization/86991 (ICE in vectorizable_reduction, at tree-vect-loop.c:6919)

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

PR tree-optimization/86991
* tree-vect-loop.c (vect_is_slp_reduction): Delay reduction
group building until we have successfully detected the SLP
reduction.
(vect_is_simple_reduction): Remove fixup code here.

* gcc.dg/pr86991.c: New testcase.

From-SVN: r266081
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr86991.c [new file with mode: 0644]
gcc/tree-vect-loop.c