PR testsuite/52641
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dom-cse-1.c
blob70a905819cd4a18d6a29a2b4a146039a08940353
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fre1-details" } */
3 int t(int a) __attribute__ ((const));
4 void q (void);
5 void
6 threading(int a,int b)
8 if (t(a))
10 if (t(a))
11 q();
14 /* We should thread the jump twice and eliminate it. */
15 /* { dg-final { scan-tree-dump-times "Replaced.* t " 1 "fre1"} } */
16 /* { dg-final { cleanup-tree-dump "fre1" } } */