Also reformat a comment that had too long lines.
Commit
c5bd0e5870a introduced both these problems to fix.
Committed as obvious after ensuring that when running the testcase on
AArch64 it still fails before the original
c5bd0e5870a commit and passes
after it.
gcc/ChangeLog:
* tree-vect-stmts.cc (get_group_load_store_type): Reformat
comment.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/vect-multi-peel-gaps.c: Add `check_vect` call into
`main` of this testcase.
/* { dg-require-effective-target mmap } */
#include <sys/mman.h>
#include <stdio.h>
+#include "tree-vect.h"
#define MMAP_SIZE 0x20000
#define ADDRESS 0x1122000000
int main() {
void *s_mapping;
void *end_s;
+ check_vect ();
s_mapping = mmap ((void *)ADDRESS, MMAP_SIZE, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
if (s_mapping == MAP_FAILED)
we can end up with no gap recorded but still excess
elements accessed, see PR103116. Make sure we peel for
gaps if necessary and sufficient and give up if not.
- If there is a combination of the access not covering the full vector and
- a gap recorded then we may need to peel twice. */
+
+ If there is a combination of the access not covering the full
+ vector and a gap recorded then we may need to peel twice. */
if (loop_vinfo
&& *memory_access_type == VMAT_CONTIGUOUS
&& SLP_TREE_LOAD_PERMUTATION (slp_node).exists ()