[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c

Chris Lattner lattner at cs.uiuc.edu
Wed Nov 10 00:43:16 PST 2004



Changes in directory llvm-test/MultiSource/Benchmarks/Ptrdist/anagram:

anagram.c updated: 1.1 -> 1.2
---
Log message:

Reduce the amount of pointless IO this program does


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

Index: llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c
diff -u llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c:1.1 llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c:1.2
--- llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c:1.1	Fri Feb 14 13:57:03 2003
+++ llvm-test/MultiSource/Benchmarks/Ptrdist/anagram/anagram.c	Wed Nov 10 02:43:01 2004
@@ -479,7 +479,10 @@
 )                                       /* End of debug code */
 
 void DumpWords(void) {
-    int i;
+static int X;
+  int i;
+  X = (X+1) & 1023;
+  if (X != 0) return;
     for (i = 0; i < cpwLast; i++) wprint(apwSol[i]->pchWord);
     printf("\n");
 }






More information about the llvm-commits mailing list