]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/96854 - SLP reduction of two-operator is broken
authorRichard Biener <rguenther@suse.de>
Mon, 31 Aug 2020 11:36:09 +0000 (13:36 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 31 Aug 2020 11:36:09 +0000 (13:36 +0200)
commit9f980cdba9e2fc0cc3f50c2c790f53b4dcd9dbe5
treecd684f089e4cdecc0c8f911cf1b4d842354199c6
parent2cbd82044b21679fa533445f373374576f638da1
tree-optimization/96854 - SLP reduction of two-operator is broken

This fixes SLP reduction of two-operator operations by marking those
not supported.  In fact any live lane out of such an operation cannot
be code-generated correctly.

2020-08-31  Richard Biener  <rguenther@suse.de>

PR tree-optimization/96854
* tree-vect-loop.c (vectorizable_live_operation): Disallow
SLP_TREE_TWO_OPERATORS nodes.

* gcc.dg/vect/pr96854.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr96854.c [new file with mode: 0644]
gcc/tree-vect-loop.c
This page took 0.065198 seconds and 6 git commands to generate.