]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix bogus SLP nvector compute in check_load_store_for_partial_vectors
authorRichard Biener <rguenther@suse.de>
Tue, 24 Sep 2024 08:42:01 +0000 (10:42 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 27 Sep 2024 07:20:24 +0000 (09:20 +0200)
commit3db9e99165968af8479468cd373990da2f116e3b
tree71f6a1cd29648cccd9add3af0071bf87f4c1fa47
parent9c04112fdc221b0a337f88572dfef4caaca78349
Fix bogus SLP nvector compute in check_load_store_for_partial_vectors

We have a new overload for vect_get_num_copies that handles both
SLP and non-SLP.  Use it and avoid the division by group_size
for SLP when not using load-store lanes.

* tree-vect-stmts.cc (check_load_store_for_partial_vectors):
Use the new vect_get_num_copies overload.  Only divide by
group_size for SLP for load-store lanes.
gcc/tree-vect-stmts.cc