projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Example for optimizing non-strict programs using combo.
[libfirm]
/
ir
/
be
/
test
/
codegen
/
intfloatconv.c
1
2
#define SIZE 10000
3
int arr1[SIZE];
4
int arr2[SIZE];
5
6
int main(int argc, char **argv)
7
{
8
int i;
9
int iter;
10
int iterations = 100;
11
12
if(argc > 1)
13
iterations = atoi(argv[1]);
14
15
for(iter = 0; iter < iterations; ++iter) {
16
for(i = 0; i < SIZE; ++i) {
17
arr1[i] = arr2[i] + 23.5;
18
}
19
}
20
21
return 0;
22
}