projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
push unused livethroughs through loops in belady3
[libfirm]
/
ir
/
be
/
test
/
codegen
/
spillharness.c
1
int max = 1000000;
2
3
int printf(const char *str, ...);
4
5
int main(int argc, char **argv) {
6
int i;
7
int i2;
8
int val;
9
10
for(i = 0; i < max; ++i) {
11
val = rand();
12
}
13
14
rand();
15
for(i2 = 0; i2 < 100; ++i2) {
16
for(i = 0; i < max; ++i) {
17
int i1 = rand();
18
int i2 = rand();
19
int i3 = rand();
20
int i4 = rand();
21
int i5 = rand();
22
int i6 = rand();
23
int i7 = rand();
24
25
i += i1 +i2 +i3+i4+i5+i6+i7;
26
printf("%d\n", i);
27
}
28
}
29
30
printf("end\n");
31
return val;
32
}