]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/modref-7.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / modref-7.c
1 /* { dg-options "-O2 --param modref-max-accesses=1 -fdump-tree-modref1" } */
2 /* { dg-do compile } */
3 struct a {
4 int array[10];
5 int tail;
6 };
7 int test(struct a *a, int p)
8 {
9 a->array[p] = 0;
10 a->array[0] = 1;
11 }
12 /* All three accesses combine to one bigger access. */
13 /* { dg-final { scan-tree-dump-not "--param modref-max-accesses" "modref1" } } */