re PR tree-optimization/91178 (Infinite recursion in split_constant_offset in slp...
authorRichard Biener <rguenther@suse.de>
Wed, 17 Jul 2019 10:26:25 +0000 (10:26 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 17 Jul 2019 10:26:25 +0000 (10:26 +0000)
commit7921a90e334117206c6bb78bad57e07fb242214c
tree0f25c2455ffa74ab7f422e94f69d0c33157fbed8
parent9505acd8501e6c79bc4fa9ed9f1ee174462601d1
re PR tree-optimization/91178 (Infinite recursion in split_constant_offset in slp after r260289)

2019-07-17  Richard Biener  <rguenther@suse.de>

PR tree-optimization/91178
* tree-vect-stmts.c (get_group_load_store_type): For SLP
loads with a gap larger than the vector size always use
VMAT_STRIDED_SLP.
(vectorizable_load): For VMAT_STRIDED_SLP with a permutation
avoid loading vectors that are only contained in the gap
and thus are not needed.

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

From-SVN: r273549
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr91178.c [new file with mode: 0644]
gcc/tree-vect-stmts.c