Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/minmax-17.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-phiopt1-details" } */
3
4 static inline unsigned long long g(int t)
5 {
6 unsigned t1 = t;
7 return t1;
8 }
9 unsigned long long test_max(int c, int d, int e)
10 {
11 unsigned long long t;
12 if (c > d)
13 t = g(c);
14 else
15 t = g(d);
16 return t;
17 }
18
19 /* We should figure out that test_max has an MAX_EXPR in it. */
20 /* { dg-final { scan-tree-dump " = MAX_EXPR" "phiopt1"} } */
21 /* { dg-final { scan-tree-dump-times "changed to factor operation out from" 2 "phiopt1"} } */