diff options
author | Richard Biener <rguenther@suse.de> | 2024-11-08 09:43:26 +0100 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2024-11-12 08:33:58 +0100 |
commit | 61cd1c43b82dc9d4c3edf122d22887fdce340223 (patch) | |
tree | ca74e11b310c61c963dc524fdb655b7eaec73449 /gcc/tree-vectorizer.h | |
parent | 0b27a7dd050262a7d64d87863201e4ebbde88386 (diff) | |
download | gcc-61cd1c43b82dc9d4c3edf122d22887fdce340223.zip gcc-61cd1c43b82dc9d4c3edf122d22887fdce340223.tar.gz gcc-61cd1c43b82dc9d4c3edf122d22887fdce340223.tar.bz2 |
tree-optimization/117484 - issue with SLP discovery of permuted .MASK_LOAD
When we do SLP discovery of a .MASK_LOAD for a dataref group with gaps
the discovery for the mask will have gaps as well and this was
unexpected in a few places. The following re-organizes things
slightly to accomodate for this.
PR tree-optimization/117484
* tree-vect-slp.cc (vect_build_slp_tree_2): Handle gaps in
mask discovery. Fix condition to release the load permutation.
(vect_lower_load_permutations): Assert we get no load
permutation for the unpermuted node.
* tree-vect-slp-patterns.cc (linear_loads_p): Properly identify
loads (without permutation).
(compatible_complex_nodes_p): Likewise.
* gcc.dg/vect/pr117484-1.c: New testcase.
* gcc.dg/vect/pr117484-2.c: Likewise.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions