[llvm-commits] CVS: llvm/utils/DSAclean.py
Patrick Meredith
pmeredit at cs.uiuc.edu
Thu Oct 13 10:31:41 PDT 2005
Changes in directory llvm/utils:
DSAclean.py updated: 1.1 -> 1.2
---
Log message:
Updated to be less restrictive on what is matched
---
Diffs of the changes: (+3 -1)
DSAclean.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/utils/DSAclean.py
diff -u llvm/utils/DSAclean.py:1.1 llvm/utils/DSAclean.py:1.2
--- llvm/utils/DSAclean.py:1.1 Thu Oct 13 11:26:50 2005
+++ llvm/utils/DSAclean.py Thu Oct 13 12:31:30 2005
@@ -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 @@
#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:
More information about the llvm-commits
mailing list