]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Move slp_perm checking into get_load_store_type.
authorRobin Dapp <rdapp@ventanamicro.com>
Fri, 10 Oct 2025 16:39:01 +0000 (18:39 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Tue, 14 Oct 2025 08:00:02 +0000 (10:00 +0200)
commitaefb2dbb64a3cdd23a50e665691e7c636cee6b56
tree569d43d3306538ffdf952b5b8aeaa2de1278e382
parentb6e802fd55d37e43113fd45a96f7e49cc06fd620
vect: Move slp_perm checking into get_load_store_type.

This moves the setting of slp_perm, checking of basic-block SLP gaps, as
well as the final check for perm_ok to get_load_store_type.
Also, slp_perm is moved to ls_data.

gcc/ChangeLog:

* tree-vect-stmts.cc (get_load_store_type): Add load-permutation
checks and setting of slp_perm.
(vectorizable_store): Remove perm_ok argument.
(vectorizable_load): Ditto and replace slp_perm by ls.slp_perm.
* tree-vectorizer.h (struct vect_load_store_data): Add slp_perm.
gcc/tree-vect-stmts.cc
gcc/tree-vectorizer.h