PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-thread-15.c
blobf73268cacbb7271b4f011d871d2b4451d369e690
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1" } */
4 /* We should thread the if (!in_loop) completely leaving
5 just two conditionals. */
6 /* { dg-final { scan-tree-dump-times "if \\(" 2 "vrp1" } } */
9 union tree_node;
10 typedef union tree_node *tree;
12 enum size_type_kind
14 SIZETYPE,
15 SSIZETYPE,
16 BITSIZETYPE,
17 SBITSIZETYPE,
18 TYPE_KIND_LAST
20 extern tree size_int_kind (long, enum size_type_kind);
24 typedef struct
27 tree base, step;
29 } affine_iv;
31 struct loop
34 int num;
36 extern unsigned char simple_iv ();
38 unsigned char
39 dr_analyze_innermost (struct loop *loop, tree poffset)
41 affine_iv offset_iv;
42 unsigned char in_loop = (loop && loop->num);
45 if (in_loop)
46 simple_iv ();
48 if (!in_loop)
49 offset_iv.step = size_int_kind (0, SSIZETYPE);