Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/fre-predicated-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3
4 /* PR tree-optimization/117414 */
5
6 /* Fre1 should figure out that `*aaa != 0`
7 For f0, f1, and f2. */
8
9
10 void foo();
11 int f0(int *aaa, int j, int t)
12 {
13 int b = *aaa;
14 int d = b | t;
15 if (d == 0)
16 ;
17 else
18 return 0;
19 for(int i = 0; i < j; i++)
20 {
21 if (*aaa) foo();
22 }
23 return 0;
24 }
25
26 /* { dg-final { scan-tree-dump-not "foo " "optimized" } } */
27 /* { dg-final { scan-tree-dump "return 0;" "optimized" } } */