1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dom2-details -w -fdisable-tree-thread1" } */
3 typedef long unsigned int size_t;
5 typedef union tree_node
*tree
;
6 typedef union gimple_statement_d
*gimple
;
7 typedef const union gimple_statement_d
*const_gimple
;
8 union gimple_statement_d
13 void gimple_call_arg (gimple
, unsigned);
17 gimple_op (const_gimple gs
, unsigned i
)
19 if (!(i
< gs
->num_ops
))
25 scan_function (gimple stmt
)
28 for (i
= 0; i
< stmt
->num_ops
- 3 ; i
++)
29 gimple_call_arg (stmt
, i
);
33 /* The test which bypasses the loop is simplified prior to DOM to check
34 that stmt->num_ops - 3 != 0. When that test is false, we can derive
35 a value for stmt->num_ops. That in turn allows us to thread the jump
36 for the conditional at the start of the call to gimple_op. */
37 /* { dg-final { scan-tree-dump-times "Threaded" 1 "dom2"} } */