tree-optimization/95839 - allow CTOR vectorization without loads
authorRichard Biener <rguenther@suse.de>
Thu, 25 Jun 2020 10:47:20 +0000 (12:47 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 25 Jun 2020 13:56:06 +0000 (15:56 +0200)
commit628b78f9794a2eefcbc578011806bfa8e09b9ef7
tree5773155caa47cfcec12e00f2a4edd263437174e9
parent8005a3e4e7a643ff78086081a3385775924fe828
tree-optimization/95839 - allow CTOR vectorization without loads

This removes a premature check for enough datarefs in a basic-block
before we consider vectorizing it which leaves basic-blocks with
just vectorizable vector constructors unvectorized.  The check
is effectively done by the following check for store groups
which then also include constructors.

2020-06-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/95839
* tree-vect-slp.c (vect_slp_analyze_bb_1): Remove premature
check on the number of datarefs.

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