[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/llubenchmark/llubenchmark.c
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 1 10:57:32 PST 2005
Changes in directory llvm-test/MultiSource/Benchmarks/llubenchmark:
llubenchmark.c updated: 1.3 -> 1.4
---
Log message:
make the 'accumulate' variable non-dead and print the output.
---
Diffs of the changes: (+3 -0)
llubenchmark.c | 3 +++
1 files changed, 3 insertions(+)
Index: llvm-test/MultiSource/Benchmarks/llubenchmark/llubenchmark.c
diff -u llvm-test/MultiSource/Benchmarks/llubenchmark/llubenchmark.c:1.3 llvm-test/MultiSource/Benchmarks/llubenchmark/llubenchmark.c:1.4
--- llvm-test/MultiSource/Benchmarks/llubenchmark/llubenchmark.c:1.3 Tue Mar 1 12:49:38 2005
+++ llvm-test/MultiSource/Benchmarks/llubenchmark/llubenchmark.c Tue Mar 1 12:57:17 2005
@@ -167,6 +167,7 @@
for ( ; j > 0 ; j --) {
for (k = 0 ; k < num_lists ; k ++) {
struct element *e = allocate();
+ e->count = k+j;
if (tail) {
struct element *trav = lists[k];
while (trav->next != NULL) {
@@ -181,6 +182,8 @@
}
}
}
+ printf ("output = %d\n", accumulate);
+
printf ("num allocated %d\n", num_allocated);
return 0;
}
More information about the llvm-commits
mailing list