2017-10-20 Richard Biener <rguenther@suse.de>
commit3a4296a27e27c3f7658de46c32e5107b68838e8c
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Oct 2017 11:18:00 +0000 (20 11:18 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Oct 2017 11:18:00 +0000 (20 11:18 +0000)
treee58ec6683ff2c431c4bd63ee457f4b51e9b3a19a
parent5d7658ee3711be840a6264491659667a8daf9eda
2017-10-20  Richard Biener  <rguenther@suse.de>

Backport from mainline
2017-10-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/82436
* tree-vect-slp.c (vect_supported_load_permutation_p): More
conservatively choose the vectorization factor when checking
whether we can perform the required load permutation.
(vect_transform_slp_perm_load): Assert when we may not fail.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-7-branch@253931 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr82436.c [new file with mode: 0644]
gcc/tree-vect-slp.c