Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-early-break_63.c

raw
1 /* { dg-add-options vect_early_break } */
2 /* Disabling epilogues until we find a better way to deal with scans. */
3 /* { dg-do compile } */
4 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
5 /* { dg-require-effective-target vect_long } */
6 /* { dg-require-effective-target vect_shift } */
7 /* { dg-additional-options "-fno-tree-scev-cprop" } */
8
9 /* Statement used outside the loop.
10 NOTE: SCEV disabled to ensure the live operation is not removed before
11 vectorization. */
12 __attribute__ ((noinline)) int
13 liveloop (int start, int n, int *x, int *y)
14 {
15 int i = start;
16 int j;
17 int ret;
18
19 for (j = 0; j < n; ++j)
20 {
21 i += 1;
22 x[j] = i;
23 ret = y[j];
24 }
25 return ret;
26 }
27
28 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
29 /* { dg-final { scan-tree-dump-times "vec_stmt_relevant_p: stmt live but not relevant" 1 "vect" } } */