Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/phi-opt-same-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-phiopt1 -fdump-tree-optimized" } */
3 /* PR tree-optimization/19832 */
4
5 int f_plus(int a, int b)
6 {
7 if (a != b) return a + b;
8 return a + a;
9 }
10
11 int g_plus(int a, int b)
12 {
13 if (b != a) return a + b;
14 return a + a;
15 }
16
17 /* All of the above function's if should have been optimized away even in phiopt1. */
18 /* { dg-final { scan-tree-dump-not "if " "phiopt1" } } */
19 /* { dg-final { scan-tree-dump-not "if " "optimized" } } */