]> git.ipfire.org Git - thirdparty/gcc.git/commit
Eliminate gather-scatter-info offset_dt member
authorRichard Biener <rguenther@suse.de>
Mon, 28 Jul 2025 12:22:44 +0000 (14:22 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 29 Jul 2025 06:38:14 +0000 (08:38 +0200)
commit6ac78317aa6adf285568974afae5f22e4a309c97
tree43d9a91ff3eb4b4d8b573f0fa650dc6df56bea08
parentb87d6ae3988e9d314844f903ad8f89e565a43d06
Eliminate gather-scatter-info offset_dt member

The following removes this only set member.  Sligthly complicated
by the hoops get_group_load_store_type jumps through.  I've simplified
that, noting the offset vector type that's relevant is that of the
actual offset SLP node, not of what vect_check_gather_scatter (re-)computes.

* tree-vectorizer.h (gather_scatter_info::offset_dt): Remove.
* tree-vect-data-refs.cc (vect_describe_gather_scatter_call):
Do not set it.
(vect_check_gather_scatter): Likewise.
* tree-vect-stmts.cc (vect_truncate_gather_scatter_offset):
Likewise.
(get_group_load_store_type): Use the vector type of the offset
SLP child.  Do not re-check vect_is_simple_use validated by
SLP build.
gcc/tree-vect-data-refs.cc
gcc/tree-vect-stmts.cc
gcc/tree-vectorizer.h