summaryrefslogtreecommitdiff
path: root/utils/DSAclean.py
diff options
context:
space:
mode:
authorPatrick Meredith <pmeredit@cs.uiuc.edu>2005-10-13 17:31:30 +0000
committerPatrick Meredith <pmeredit@cs.uiuc.edu>2005-10-13 17:31:30 +0000
commitd223f5ee78536d30bc36b7bd295bb7ae9590c794 (patch)
treee1a658a799f360b0bc3e96b840d1ea63750b4448 /utils/DSAclean.py
parent144ff660e66845a575586bc4092c0cf349b5bfb9 (diff)
downloadllvm-d223f5ee78536d30bc36b7bd295bb7ae9590c794.tar.gz
llvm-d223f5ee78536d30bc36b7bd295bb7ae9590c794.tar.bz2
llvm-d223f5ee78536d30bc36b7bd295bb7ae9590c794.tar.xz
Updated to be less restrictive on what is matched
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23712 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/DSAclean.py')
-rwxr-xr-xutils/DSAclean.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/DSAclean.py b/utils/DSAclean.py
index b4605274ee..6c43357019 100755
--- a/utils/DSAclean.py
+++ b/utils/DSAclean.py
@@ -1,6 +1,8 @@
#! /usr/bin/python
#changelog:
+#10/13/2005b: replaced the # in tmp(.#*)* with alphanumeric and _, this will then remove
+#nodes such as %tmp.1.i and %tmp._i.3
#10/13/2005: exntended to remove variables of the form %tmp(.#)* rather than just
#%tmp.#, i.e. it now will remove %tmp.12.3.15 etc, additionally fixed a spelling error in
#the comments
@@ -18,7 +20,7 @@ output = open(sys.argv[2], 'w')
#it would kill old computers
buffer = input.readline()
while buffer != '':
- if re.compile("label(\s*)=(\s*)\"\s%tmp(.\d*)*(\s*)\"").search(buffer):
+ if re.compile("label(\s*)=(\s*)\"\s%tmp(.\w*)*(\s*)\"").search(buffer):
#skip next line, write neither this line nor the next
buffer = input.readline()
else: