* ipa-split.c (struct split_point): Add count.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / fnsplit-2.c
blobc00213cc18294e15b35b57462cc6a142cd62500e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fnsplit-blocks-details" } */
3 void q (void);
4 int b;
5 void test (void);
6 void
7 split_me (int *a)
9 if (__builtin_expect (a==0, 0))
12 test();
13 test();
14 test();
15 test();
16 test();
18 while (b);
19 else
20 q();
23 int
24 main(void)
26 int i;
27 for (i = 0; i < 1000; i++)
28 split_me(&i);
29 return 0;
32 /* { dg-final { scan-tree-dump-times "Splitting function at:" 1 "fnsplit"} } */
33 /* { dg-final { scan-tree-dump-times "Invalid sum" 0 "fnsplit"} } */