[llvm-commits] CVS: llvm/utils/DSAextract.py

Patrick Meredith pmeredit at cs.uiuc.edu
Mon Dec 19 18:03:35 PST 2005

Changes in directory llvm/utils:

DSAextract.py updated: 1.1 -> 1.2
Log message:

Added a break that I meant to include originally, for efficiency.  Basically
it keeps it from trying to add the same node to the node set
over and over if it matches multiple given patterns.  Also in cases where there
are a lot of patterns to be matched, and it matches an early one, this
will make the script run slightly faster.  It's more there because it logically
should be, than anything else, I mean, Python is never going to be fast ;-)

Diffs of the changes:  (+1 -0)

 DSAextract.py |    1 +
 1 files changed, 1 insertion(+)

Index: llvm/utils/DSAextract.py
diff -u llvm/utils/DSAextract.py:1.1 llvm/utils/DSAextract.py:1.2
--- llvm/utils/DSAextract.py:1.1	Sun Dec 18 19:23:31 2005
+++ llvm/utils/DSAextract.py	Mon Dec 19 20:03:23 2005
@@ -66,6 +66,7 @@
 			#for the node (it will be Node(hex number)) to our set of nodes
 			if regexp.search(buffer):
 				node_set |= set([re.split('\s+',buffer,2)[1]])
+				break
 	buffer = input.readline()

More information about the llvm-commits mailing list