aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-openmp.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-12-22 09:36:17 +0100
committerRichard Biener <rguenther@suse.de>2022-12-22 12:21:06 +0100
commit7b2cf5041460859ca4f58e5da1308b7ef9129d8b (patch)
treea34b605c914848d8c3aef462b5b0049ea3847989 /gcc/fortran/trans-openmp.cc
parent5b30e9bc211fede06cf85b54e466012540bef14d (diff)
downloadgcc-7b2cf5041460859ca4f58e5da1308b7ef9129d8b.zip
gcc-7b2cf5041460859ca4f58e5da1308b7ef9129d8b.tar.gz
gcc-7b2cf5041460859ca4f58e5da1308b7ef9129d8b.tar.bz2
tree-optimization/107451 - SLP load vectorization issue
When vectorizing SLP loads with permutations we can access excess elements when the load vector type is bigger than the group size and the vectorization factor covers less groups than necessary to fill it. Since we know the code will only access up to group_size * VF elements in the unpermuted vector we can simply fill the rest of the vector with whatever we want. For simplicity this patch chooses to repeat the last group. PR tree-optimization/107451 * tree-vect-stmts.cc (vectorizable_load): Avoid loading SLP group members from group numbers in excess of the vectorization factor. * gcc.dg/torture/pr107451.c: New testcase.
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions