Fix BB store group splitting group size compute
authorRichard Biener <rguenther@suse.de>
Tue, 27 Oct 2020 14:55:01 +0000 (15:55 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 27 Oct 2020 16:02:47 +0000 (17:02 +0100)
commit4a972479f050bc19ad55f0171523db14295924c2
tree5520da5ad8e5759ae36580c94eda9b4536e6b611
parentfe90c504416e6423c6a56f37a9265deabdb03de9
Fix BB store group splitting group size compute

This fixes a mistake in the previous change in this area to what
was desired - figure the largest power-of-two group size fitting
in the matching area.

2020-10-27  Richard Biener  <rguenther@suse.de>

* tree-vect-slp.c (vect_build_slp_instance): Use ceil_log2
to compute maximum group-size.

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