]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c
Merge tree-ssa-20020619-branch into mainline.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-pre-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-pre-stats" } */
3 int main(int argc, char **argv)
4 {
5 int a;
6 int b;
7 int c;
8 b = argc + 1;
9 c = argc + 2;
10 a = b + c;
11 if (argc * 2)
12 {
13 c = argc + 3;
14 }
15 printf ("%d, %d\n", a, b + c);
16 }
17 /* We should eliminate one evaluation of b + c along the main path,
18 causing one reload. */
19 /* { dg-final { scan-tree-dump-times "Reloads:1" 1 "pre"} } */