Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-uncprop-details -w" } */
3
4 /* We're looking for a constant argument a PHI node. There
5 should only be one if we unpropagate correctly. */
6 /* { dg-final { scan-tree-dump-times "<1\|, 1" 1 "uncprop1"} } */
7
8 typedef long unsigned int size_t;
9 typedef union gimple_statement_d *gimple;
10 int end_imm_use_stmt_p (void);
11 void next_imm_use_stmt (void);
12 int arf (void);
13 int boo (void);
14 void update_stmt (void);
15 unsigned char
16 propagate_with_phi ()
17 {
18 gimple use_stmt;
19 unsigned char phi_inserted;
20 phi_inserted = 0;
21 for (; !end_imm_use_stmt_p (); next_imm_use_stmt ())
22 {
23 if (!(arf () == 10 && boo () == 20))
24 continue;
25 if (!phi_inserted)
26 phi_inserted = 1;
27 else
28 update_stmt ();
29 }
30 }
31