OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
For Greta Yorsh.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ipa-split-2.c
1
/* { dg-do compile } */
2
/* { dg-options "-O3 -fdump-tree-fnsplit" } */
3
int b;
4
int c;
5
int d;
6
split_me(int a)
7
{
8
int t = 0;
9
if (d>4)
10
return;
11
do
12
{
13
long_function (t);
14
long_function (t);
15
long_function (t);
16
long_function (t);
17
long_function (t);
18
long_function (t);
19
make_me_irregular:
20
long_function (t);
21
long_function (t);
22
long_function (t);
23
long_function (t);
24
long_function (t);
25
t=b;
26
}
27
while (t);
28
if (c)
29
goto make_me_irregular;
30
}
31
32
main()
33
{
34
split_me (1);
35
split_me (2);
36
split_me (3);
37
split_me (4);
38
split_me (5);
39
}
40
/* { dg-final { scan-tree-dump-times "Splitting function" 1 "fnsplit"} } */
41
/* { dg-final { cleanup-tree-dump "fnsplit" } } */