1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fno-tree-scev-cprop" } */
6 /* Statement that is simple and invariant used outside the loop.
7 NOTE: SCEV disabled to ensure the live operation is not removed before
9 __attribute__ ((noinline
)) int
10 liveloop (int start
, int n
, int *x
, int *y
)
16 for (j
= 0; j
< n
; ++j
)
37 int ret
= liveloop (START
, MAX
, a
, &b
);
45 __asm__
volatile ("");
46 if (a
[i
] != i
+START
+100)
51 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
52 /* { dg-final { scan-tree-dump-not "vec_stmt_relevant_p: stmt live but not relevant" "vect" } } */