]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117709 - bogus offset for gather load
authorRichard Biener <rguenther@suse.de>
Wed, 20 Nov 2024 15:47:08 +0000 (16:47 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Nov 2024 17:38:14 +0000 (18:38 +0100)
commitf5bd88b5e874751d17a2f18c1cfc5bd054da8308
treedc58e3e668226d391b5f894026ab648548addd6e
parent2383ed144b54be6bae5ba5aec8859c6c2e215daf
tree-optimization/117709 - bogus offset for gather load

When diverting to VMAT_GATHER_SCATTER we fail to zero *poffset
which was previously set if a load was classified as
VMAT_CONTIGUOUS_REVERSE.  The following refactors
get_group_load_store_type a bit to avoid this but this all needs
some serious TLC.

PR tree-optimization/117709
* tree-vect-stmts.cc (get_group_load_store_type): Only
set *poffset when we end up with VMAT_CONTIGUOUS_DOWN
or VMAT_CONTIGUOUS_REVERSE.
gcc/tree-vect-stmts.cc