]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/ssa-dom-cse-1.c
Merge tree-ssa-20020619-branch into mainline.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dom-cse-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dom2-details" } */
3 int t(int a) __attribute__ ((const));
4 void q (void);
5 void
6 threading(int a,int b)
7 {
8 if (t(a))
9 {
10 if (t(a))
11 q();
12 }
13 }
14 /* We should thread the jump twice and eliminate it. Test this in
15 DOM2, after aliases have been computed. */
16 /* { dg-final { scan-tree-dump-times "Replaced.* t " 1 "dom2"} } */