[llvm-commits] CVS: llvm/test/Programs/SingleSource/dry.c

Chris Lattner lattner at cs.uiuc.edu
Fri Apr 25 13:34:01 PDT 2003


Changes in directory llvm/test/Programs/SingleSource:

dry.c updated: 1.2 -> 1.3

---
Log message:

* Switch to use the "clock" function to get time
* Reduce the size of the testcase to run reasonably in LLI
* Print some progress messages


---
Diffs of the changes:

Index: llvm/test/Programs/SingleSource/dry.c
diff -u llvm/test/Programs/SingleSource/dry.c:1.2 llvm/test/Programs/SingleSource/dry.c:1.3
--- llvm/test/Programs/SingleSource/dry.c:1.2	Tue Apr 22 16:02:11 2003
+++ llvm/test/Programs/SingleSource/dry.c	Fri Apr 25 13:33:25 2003
@@ -88,7 +88,7 @@
 /*#define MYSTRFNS */
 
 /* Accuracy of timings and human fatigue controlled by next two lines */
-#define LOOPS	300000		/* Use this for slow or 16 bit machines */
+#define LOOPS	10000		/* Use this for slow or 16 bit machines */
 /*#define LOOPS	900000		/* Use this for faster machines */
 
 /* Compiler dependent options */
@@ -96,8 +96,8 @@
 #undef	NOSTRUCTASSIGN		/* Define if compiler can't assign structures */
 
 /* define only one of the next three defines */
-/*#define CLOCK */
-#define TIMES			/* Use times(2) time function */
+#define CLOCK
+/*#define TIMES			/* Use times(2) time function */
 /*#define TIME			/* Use time(2) time function */
 
 /* define the granularity of your times(2) function (when used) */
@@ -256,6 +256,7 @@
 #endif
 	for (i = 0; i < LOOPS; ++i)
 	{
+          if ((i & 127) == 0) printf("making progress: %d\n", i);
 		Proc5();
 		Proc4();
 		IntLoc1 = 2;





More information about the llvm-commits mailing list