aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2021-03-31 11:26:06 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2021-03-31 11:26:06 +0100
commit1393938e4c7dab9306cdce5a73d93b242fc246ec (patch)
tree82f448fd1b8f033b997c7895a7850486f4ac5804 /gcc/tree-data-ref.c
parentd7145b4bb6c8729a1e782373cb6256c06ed60465 (diff)
downloadgcc-1393938e4c7dab9306cdce5a73d93b242fc246ec.zip
gcc-1393938e4c7dab9306cdce5a73d93b242fc246ec.tar.gz
gcc-1393938e4c7dab9306cdce5a73d93b242fc246ec.tar.bz2
aarch64: Fix target alignment for SVE [PR98119]
The vectoriser supports peeling for alignment using predication: we move back to the previous aligned boundary and make the skipped elements inactive in the first loop iteration. As it happens, the costs for existing CPUs give an equal cost to aligned and unaligned accesses, so this feature is rarely used. However, the PR shows that when the feature was forced on, we were still trying to align to a full-vector boundary even when using partial vectors. gcc/ PR target/98119 * config/aarch64/aarch64.c (aarch64_vectorize_preferred_vector_alignment): Query the size of the provided SVE vector; do not assume that all SVE vectors have the same size. gcc/testsuite/ PR target/98119 * gcc.target/aarch64/sve/pr98119.c: New test.
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions