re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dom-cse-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fre-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. */
15 /* { dg-final { scan-tree-dump-times "Replaced.* t " 1 "fre"} } */
16 /* { dg-final { cleanup-tree-dump "fre" } } */