tree-optimization/113080 - missing final value replacement
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / sccp-3.c
blobb8c67427f16ea68be603f9665fdc9703f4e29908
1 /* PR/113080 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 int a,b,n;
6 int w;
7 void fun1(int t)
9 for(int i=0;i<100;i++)
11 a+=w;
12 b-=w;
13 t+=a+b;
15 n=t;
18 /* We should apply final value replacement to all reductions and
19 elide the loop. */
20 /* { dg-final { scan-tree-dump-times "<bb" 1 "optimized" } } */