projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Example for optimizing non-strict programs using combo.
[libfirm]
/
ir
/
be
/
test
/
vla.c
diff --git
a/ir/be/test/vla.c
b/ir/be/test/vla.c
index
12a7e7c
..
5c30c97
100644
(file)
--- a/
ir/be/test/vla.c
+++ b/
ir/be/test/vla.c
@@
-5,7
+5,8
@@
void f(int x)
{
int a[x];
- for (int i = 0; i < x; ++i) {
+ int i;
+ for (i = 0; i < x; ++i) {
a[i] = rand();
}
}
@@
-14,6
+15,6
@@
void f(int x)
int main(void)
{
srand(23);
- f(rand());
+ f(rand()
& 31
);
return 0;
}