summaryrefslogtreecommitdiffstats
path: root/llvm/utils/DSAextract.py
diff options
context:
space:
mode:
authorPatrick Meredith <pmeredit@cs.uiuc.edu>2005-12-20 02:03:23 +0000
committerPatrick Meredith <pmeredit@cs.uiuc.edu>2005-12-20 02:03:23 +0000
commit2dd7e06d8eceb999b613777c4baee5776daa47bf (patch)
tree89472300e8be495f26294d0359e71f3f03508467 /llvm/utils/DSAextract.py
parent2af3ee4bddce092b68c4834d35a496af6d508035 (diff)
downloadbcm5719-llvm-2dd7e06d8eceb999b613777c4baee5776daa47bf.tar.gz
bcm5719-llvm-2dd7e06d8eceb999b613777c4baee5776daa47bf.zip
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 ;-) llvm-svn: 24876
Diffstat (limited to 'llvm/utils/DSAextract.py')
-rw-r--r--llvm/utils/DSAextract.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/DSAextract.py b/llvm/utils/DSAextract.py
index de82b5556b5..134e9453fbb 100644
--- a/llvm/utils/DSAextract.py
+++ b/llvm/utils/DSAextract.py
@@ -66,6 +66,7 @@ while buffer != '':
#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()
OpenPOWER on IntegriCloud