tree-vect-stmts.c (get_group_load_store_type): Avoid peeling for gaps by loading...
authorRichard Biener <rguenther@suse.de>
Fri, 3 May 2019 10:47:21 +0000 (10:47 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 3 May 2019 10:47:21 +0000 (10:47 +0000)
commit419c5f99876d9ee517f6b646dd785cdcaf5cb6fe
tree5add58bfd54eee00530551bcf25b1802a86355cb
parent839d0860cf808e7457a5e57d745830023d57998b
tree-vect-stmts.c (get_group_load_store_type): Avoid peeling for gaps by loading only lower halves of vectors if possible.

2019-05-03  Richard Biener  <rguenther@suse.de>

* tree-vect-stmts.c (get_group_load_store_type): Avoid
peeling for gaps by loading only lower halves of vectors
if possible.
(vectorizable_load): Likewise.

* gcc.dg/vect/slp-reduc-sad-2.c: New testcase.

From-SVN: r270847
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/slp-reduc-sad-2.c [new file with mode: 0644]
gcc/tree-vect-stmts.c