Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tree-ssa/ssa-hoist-6.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */ | |
3 | |
4 int a[1024]; | |
5 int b[1024], c[1024]; | |
6 void foo () | |
7 { | |
8 for (int j = 0; j < 1024; ++j) | |
9 { | |
10 for (int i = 0; i < 1024; ++i) | |
11 a[i] = j; | |
12 b[j] = c[j]; | |
13 } | |
14 } | |
15 | |
16 /* We should not hoist/PRE the outer loop IV increment or the load | |
17 from c across the inner loop. */ | |
18 | |
19 /* { dg-final { scan-tree-dump-not "HOIST inserted" "pre" } } */ |