aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2024-10-09 15:31:59 +0200
committerRichard Biener <rguenth@gcc.gnu.org>2024-10-10 09:00:07 +0200
commitbcccc3221b838ee7ae7848e7194603acb18294b3 (patch)
treeaccc367571f627cdd2b3c8bf12302ccf80a8acdf /gcc/fortran
parent9eaecce3d8c1d9349adbf8c2cdaf8d87672ed29c (diff)
downloadgcc-bcccc3221b838ee7ae7848e7194603acb18294b3.zip
gcc-bcccc3221b838ee7ae7848e7194603acb18294b3.tar.gz
gcc-bcccc3221b838ee7ae7848e7194603acb18294b3.tar.bz2
Allow SLP store of mixed external and constant
vect_build_slp_tree_1 rejected this during SLP discovery because it ran into the rhs code comparison code for stores. The following skips that completely for loads and stores as those are handled later anyway. This needs a heuristic adjustment in vect_get_and_check_slp_defs to avoid fallout with regard to BB vectorization and splitting of a store group vs. demoting one operand to external. gcc.dg/Wstringop-overflow-47.c needs adjustment given we now have vast improvements for code generation. gcc.dg/strlenopt-32.c needs adjustment because the strlen pass doesn't handle _11 = {0, b_6(D)}; __builtin_memcpy (&a, "foo.bar", 8); MEM <vector(2) char> [(char *)&a + 3B] = _11; _9 = strlen (&a); I have opened PR117057 for this. * tree-vect-slp.cc (vect_build_slp_tree_1): Do not compare RHS codes for loads or stores. (vect_get_and_check_slp_defs): Only demote operand to external in case there is more than one operand. * gcc.dg/vect/slp-57.c: New testcase. * gcc.dg/Wstringop-overflow-47.c: Adjust. * gcc.dg/strlenopt-32.c: XFAIL parts.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions