[llvm-commits] CVS: llvm-test/SingleSource/Benchmarks/McGill/chomp.c misr.c queens.c

Lauro Ramos Venancio lauro.venancio at gmail.com
Thu May 3 09:56:40 PDT 2007



Changes in directory llvm-test/SingleSource/Benchmarks/McGill:

chomp.c updated: 1.2 -> 1.3
misr.c updated: 1.3 -> 1.4
queens.c updated: 1.2 -> 1.3
---
Log message:

Implement SMALL_PROBLEM_SIZE.


---
Diffs of the changes:  (+17 -1)

 chomp.c  |   10 +++++++++-
 misr.c   |    4 ++++
 queens.c |    4 ++++
 3 files changed, 17 insertions(+), 1 deletion(-)


Index: llvm-test/SingleSource/Benchmarks/McGill/chomp.c
diff -u llvm-test/SingleSource/Benchmarks/McGill/chomp.c:1.2 llvm-test/SingleSource/Benchmarks/McGill/chomp.c:1.3
--- llvm-test/SingleSource/Benchmarks/McGill/chomp.c:1.2	Fri Nov 24 15:19:41 2006
+++ llvm-test/SingleSource/Benchmarks/McGill/chomp.c	Thu May  3 11:55:46 2007
@@ -375,13 +375,21 @@
 #if 0
 	scanf("%d",&ncol);
 #else
+#ifdef SMALL_PROBLEM_SIZE
 	ncol = 7;
+#else
+        ncol = 7;
+#endif
 #endif
 	printf("Enter number of Rows    : ");
 #if 0
 	scanf("%d",&nrow);
 #else
-	nrow = 8;
+#ifdef SMALL_PROBLEM_SIZE
+	nrow = 7;
+#else
+        nrow = 8;
+#endif
 #endif
 	tree = make_play(1); /* create entire tree structure, not just the */
 	player = 0;          /* needed part for first move */


Index: llvm-test/SingleSource/Benchmarks/McGill/misr.c
diff -u llvm-test/SingleSource/Benchmarks/McGill/misr.c:1.3 llvm-test/SingleSource/Benchmarks/McGill/misr.c:1.4
--- llvm-test/SingleSource/Benchmarks/McGill/misr.c:1.3	Fri Nov 24 15:19:41 2006
+++ llvm-test/SingleSource/Benchmarks/McGill/misr.c	Thu May  3 11:55:46 2007
@@ -80,7 +80,11 @@
 
         reg_len = num_vect = 10;
         prob = .25;
+#ifdef SMALL_PROBLEM_SIZE
+        num_times = 30000;
+#else
         num_times = 100000;
+#endif
 
 
 	if (argc > 6) strcpy(structure, argv[6]);


Index: llvm-test/SingleSource/Benchmarks/McGill/queens.c
diff -u llvm-test/SingleSource/Benchmarks/McGill/queens.c:1.2 llvm-test/SingleSource/Benchmarks/McGill/queens.c:1.3
--- llvm-test/SingleSource/Benchmarks/McGill/queens.c:1.2	Fri Nov 24 15:19:41 2006
+++ llvm-test/SingleSource/Benchmarks/McGill/queens.c	Thu May  3 11:55:46 2007
@@ -220,7 +220,11 @@
 
    /****   DECODE COMMAND LINE ARGUMENTS   ****/
    printing = 0;
+#ifdef SMALL_PROBLEM_SIZE
+   queens = 13;
+#else
    queens = 14;
+#endif
    findall = 1;
 
    for(i = 1; i < argc; ++i) {			/* Scan through arguments */






More information about the llvm-commits mailing list