re PR tree-optimization/66165 (vect_transform_slp_perm_load: vec out of range ?)
authorRichard Biener <rguenther@suse.de>
Tue, 19 May 2015 09:36:35 +0000 (09:36 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 19 May 2015 09:36:35 +0000 (09:36 +0000)
commit9626d143b96c1d860b478cd4196373b6c9428f6d
tree74ed8779cf358a8c314b9e9bf52677f36112fa68
parentd33606c30678cbccf0e95840e7dc48918ff1e21e
re PR tree-optimization/66165 (vect_transform_slp_perm_load: vec out of range ?)

2015-05-19  Richard Biener  <rguenther@suse.de>

PR tree-optimization/66165
* tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
for no load permutation.

* gcc.dg/torture/pr66165.c: New testcase.

PR tree-optimization/66185
* tree-vect-slp.c (vect_build_slp_tree): Properly roll back
when building the SLP node from scalars.

* gcc.dg/torture/pr66185.c: New testcase.

From-SVN: r223349
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr66165.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr66185.c [new file with mode: 0644]
gcc/tree-vect-slp.c