]> git.ipfire.org Git - thirdparty/gcc.git/commit
Enhance gather fallback for PR65518 with SLP
authorRichard Biener <rguenther@suse.de>
Wed, 16 Oct 2024 08:09:36 +0000 (10:09 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 16 Oct 2024 11:04:38 +0000 (13:04 +0200)
commit62cdddd4e621a8182c58161188009f1e9b256e1b
treed266809386d19a401eec682eabe1ae80325165c3
parentae224de0631a7fcac37ac1384f457f1dc1a487b2
Enhance gather fallback for PR65518 with SLP

With SLP forced we fail to use gather for PR65518 on RISC-V as expected
because we're failing due to not effective peeling for gaps.  The
following appropriately moves the memory_access_type adjustment before
doing all the overrun checking since using VMAT_ELEMENTWISE means
there's no overrun.

* tree-vect-stmts.cc (get_group_load_store_type): Move
VMAT_ELEMENTWISE fallback for single-element interleaving
of too large groups before overrun checking.

* gcc.dg/vect/pr65518.c: Adjust.
gcc/testsuite/gcc.dg/vect/pr65518.c
gcc/tree-vect-stmts.cc