1 /* Source for debugging optimimzed code test.
3 cc -g -O -o optimize optimize.c
21 d
= (2 * a
+ 1) * (3 * b
+ 2);
22 e
= (2 * a
+ 1) * (3 * b
+ 2);
24 /* Create dead stores--do lines still exist?
26 d
= (2 * a
+ 1) * (3 * b
+ 2);
27 e
= (2 * a
+ 1) * (3 * b
+ 2);
28 d
= (2 * a
+ 1) * (3 * b
+ 2);
29 e
= (2 * a
+ 1) * (3 * b
+ 2);
31 /* Alpha and psi motion
47 a
= b
* c
+ d
* e
; /* Chi */
49 g
= f
+ d
* e
; /* Rho */
51 test_opt
= (test_opt
!= 1); /* Cycles */
52 } while( g
&& h
< 10);
54 /* Opps for tail recursion, unrolling,
55 * folding, evaporating
57 for( a
= 0; a
< 100; a
++ ) {
58 callee( callee ( callee( a
)));
59 callee( callee ( callee( a
)));
60 callee( callee ( callee( a
)));
63 return callee( test_opt
);
66 /* defined late to keep line numbers the same
69 int x
; /* not used! */
71 test_opt
++; /* side effect */