Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-cost-model-4.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-O2 -ftree-vectorize -fvect-cost-model=very-cheap" } */
3
4 int x[1024], y[1024];
5
6 void
7 f (void)
8 {
9 for (unsigned int i = 0; i < 1024; ++i)
10 x[i] += y[i];
11 }
12
13 /* { dg-final { scan-tree-dump {LOOP VECTORIZED} vect { target vect_int } } } */