[llvm-commits] CVS: llvm-test/MultiSource/Applications/spiff/Makefile spiff.c
Evan Cheng
evan.cheng at apple.com
Wed Jun 20 13:50:09 PDT 2007
Changes in directory llvm-test/MultiSource/Applications/spiff:
Makefile updated: 1.3 -> 1.4
spiff.c updated: 1.2 -> 1.3
---
Log message:
Increase test size to something reasonable.
---
Diffs of the changes: (+18 -8)
Makefile | 3 ++-
spiff.c | 23 ++++++++++++++++-------
2 files changed, 18 insertions(+), 8 deletions(-)
Index: llvm-test/MultiSource/Applications/spiff/Makefile
diff -u llvm-test/MultiSource/Applications/spiff/Makefile:1.3 llvm-test/MultiSource/Applications/spiff/Makefile:1.4
--- llvm-test/MultiSource/Applications/spiff/Makefile:1.3 Fri Jul 29 13:08:48 2005
+++ llvm-test/MultiSource/Applications/spiff/Makefile Wed Jun 20 15:49:47 2007
@@ -4,7 +4,8 @@
CFLAGS =
LDFLAGS =
-RUN_OPTIONS = $(PROJ_SRC_DIR)/Sample.1 $(PROJ_SRC_DIR)/Sample.2
+#RUN_OPTIONS = $(PROJ_SRC_DIR)/Sample.1 $(PROJ_SRC_DIR)/Sample.2
+RUN_OPTIONS = $(PROJ_SRC_DIR)/Sample.3 $(PROJ_SRC_DIR)/Sample.4
#RUN_OPTIONS = ./Sample.3 ./Sample.4
#RUN_OPTIONS = ./one ./two
# you get the idea...
Index: llvm-test/MultiSource/Applications/spiff/spiff.c
diff -u llvm-test/MultiSource/Applications/spiff/spiff.c:1.2 llvm-test/MultiSource/Applications/spiff/spiff.c:1.3
--- llvm-test/MultiSource/Applications/spiff/spiff.c:1.2 Wed Sep 1 09:33:21 2004
+++ llvm-test/MultiSource/Applications/spiff/spiff.c Wed Jun 20 15:49:47 2007
@@ -8,7 +8,7 @@
#ifndef lint
-static char rcsid[]= "$Header: /var/cvs/llvm/llvm-test/MultiSource/Applications/spiff/spiff.c,v 1.2 2004/09/01 14:33:21 criswell Exp $";
+static char rcsid[]= "$Header: /var/cvs/llvm/llvm-test/MultiSource/Applications/spiff/spiff.c,v 1.3 2007/06/20 20:49:47 evancheng Exp $";
#endif
@@ -38,6 +38,12 @@
*/
static int _Y_flags;
+#ifdef SMALL_PROBLEM_SIZE
+#define SPIFF_ITER 1000
+#else
+#define SPIFF_ITER 30000
+#endif
+
int
main(argc,argv)
int argc;
@@ -107,16 +113,19 @@
if (-1 == max_d)
max_d = K_gettmax(0) + K_gettmax(1);
- if (_Y_eflag)
- {
+ for(i=0;i<=SPIFF_ITER;i++)
+ {
+ if (_Y_eflag)
+ {
edit_end = Q_do_exact(K_gettmax(0),K_gettmax(1),
max_d,_Y_flags);
- }
- else
- {
+ }
+ else
+ {
edit_end = G_do_miller(K_gettmax(0), K_gettmax(1),
max_d,_Y_flags);
- }
+ }
+ }
if (E_NULL != edit_end)
{
More information about the llvm-commits
mailing list