]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117307 - STMT_VINFO_SLP_VECT_ONLY mis-computation
authorRichard Biener <rguenther@suse.de>
Mon, 28 Oct 2024 08:52:08 +0000 (09:52 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 29 Nov 2024 12:47:59 +0000 (13:47 +0100)
commitbbe47a2d763d14de94c1e98104e2fa553783972a
tree68c6938da0b99f663a1a8b9308e9eed6b5632c87
parent6cfe4fd3fb44b660eaf52302235c4a9992a9ddb4
tree-optimization/117307 - STMT_VINFO_SLP_VECT_ONLY mis-computation

STMT_VINFO_SLP_VECT_ONLY isn't properly computed as union of all
group members and when the group is later split due to duplicates
not all sub-groups inherit the flag.

PR tree-optimization/117307
* tree-vect-data-refs.cc (vect_analyze_data_ref_accesses):
Properly compute STMT_VINFO_SLP_VECT_ONLY.  Set it on all
parts of a split group.

* gcc.dg/vect/pr117307.c: New testcase.

(cherry picked from commit 19722308a286d9a00eead8ac82b948da8c4ca38b)
gcc/testsuite/gcc.dg/vect/pr117307.c [new file with mode: 0644]
gcc/tree-vect-data-refs.cc