tree-optimization/99807 - avoid bogus assert with permute SLP node
authorRichard Biener <rguenther@suse.de>
Mon, 29 Mar 2021 11:10:37 +0000 (13:10 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 29 Mar 2021 11:13:10 +0000 (13:13 +0200)
commit8cf2812cfceaf464dff99651b2d911d6e12b52b7
treeb3a8e32bf54643133ee999acc840af2cd3d926c7
parent37d9074e12082132ae62c12fbe958c697f638c0a
tree-optimization/99807 - avoid bogus assert with permute SLP node

This avoids asserting anything on the SLP_TREE_REPRESENTATIVE of
an SLP permute node (which shouldn't be there).

2021-03-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/99807
* tree-vect-slp.c (vect_slp_analyze_node_operations_1): Move
assert below VEC_PERM handling.

* gfortran.dg/vect/pr99807.f90: New testcase.
gcc/testsuite/gfortran.dg/vect/pr99807.f90 [new file with mode: 0644]
gcc/tree-vect-slp.c