[llvm-commits] CVS: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/main.c utility.c
Chris Lattner
lattner at cs.uiuc.edu
Mon Apr 5 13:23:02 PDT 2004
Changes in directory llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso:
main.c updated: 1.1 -> 1.2
utility.c updated: 1.1 -> 1.2
---
Log message:
Fix spurious diff failures due to printing argv[0] and timings
---
Diffs of the changes: (+4 -3)
Index: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/main.c
diff -u llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/main.c:1.1 llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/main.c:1.2
--- llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/main.c:1.1 Tue Feb 17 12:13:40 2004
+++ llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/main.c Mon Apr 5 13:22:14 2004
@@ -164,8 +164,8 @@
/* provide version information and summaries */
if (summary || trace) {
/* echo command line and arguments */
- printf("#");
- for(i = 0; i < argc; i++) {
+ printf("# espresso");
+ for(i = 1; i < argc; i++) {
printf(" %s", argv[i]);
}
printf("\n");
@@ -570,6 +570,7 @@
for(i = 0; i < TIME_COUNT; i++) {
if (total_calls[i] != 0) {
temp = 100 * total_time[i];
+ temp = 0;
printf("# %s\t%2d call(s) for %s (%2ld.%01ld%%)\n",
total_name[i], total_calls[i], print_time(total_time[i]),
temp/total, (10 * (temp%total)) / total);
Index: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/utility.c
diff -u llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/utility.c:1.1 llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/utility.c:1.2
--- llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/utility.c:1.1 Tue Feb 17 12:13:41 2004
+++ llvm/test/Programs/MultiSource/Benchmarks/MallocBench/espresso/utility.c Mon Apr 5 13:22:14 2004
@@ -124,7 +124,7 @@
long t;
{
static char s[40];
-
+ return "";
(void) sprintf(s, "%ld.%02ld sec", t/1000, (t%1000)/10);
return s;
}
More information about the llvm-commits
mailing list