re PR middle-end/67790 (verify_ssa failed: definition in block 20 follows the use)
authorRichard Biener <rguenther@suse.de>
Wed, 18 Nov 2015 08:31:32 +0000 (08:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 18 Nov 2015 08:31:32 +0000 (08:31 +0000)
commit0b176958df07659d96bf1ae3f42cf4607161bd1d
tree3dd101923b7b9075ba8cb94d8319a4457ff1823b
parentae53cf85a0674d2dee066e6104defd9ec817f89e
re PR middle-end/67790 (verify_ssa failed: definition in block 20 follows the use)

2015-11-18  Richard Biener  <rguenther@suse.de>

PR tree-optimization/67790
* tree-vect-loop.c (vect_is_simple_reduction_1): Remove
IL rewrite for MINUS_EXPR reductions, rename back to ...
(vect_is_simple_reduction): ... this, removing the wrapper.
(vect_force_simple_reduction): Adjust.
(vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
reductions and make use if reduc_index in all places.  For
the final reduction of MINUS_EXPR use PLUS_EXPR.

* gcc.dg/vect/pr67790.c: New testcase.

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