Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/sccp-3.c

raw
1 /* PR/113080 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4
5 int a,b,n;
6 int w;
7 void fun1(int t)
8 {
9 for(int i=0;i<100;i++)
10 {
11 a+=w;
12 b-=w;
13 t+=a+b;
14 }
15 n=t;
16 }
17
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" } } */