]> 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>
Mon, 28 Oct 2024 10:31:38 +0000 (11:31 +0100)
commit19722308a286d9a00eead8ac82b948da8c4ca38b
treea74ba9d750fb515df5301196bb3975fc9c388098
parent6c45281a208652143c128541d80ce66da6d49868
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.
gcc/testsuite/gcc.dg/vect/pr117307.c [new file with mode: 0644]
gcc/tree-vect-data-refs.cc