X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FDSAclean.py;h=6c43357019ef00592c53ecfb59d0ca93eb80c757;hb=fd491461fc4bf24de4b29d5fba6f2c09c5d2311f;hp=b4605274eeaa854419cb1c634b3c26d7f38522f4;hpb=b89dd23b43489964e257f3c60bdfe52400fd6130;p=oota-llvm.git diff --git a/utils/DSAclean.py b/utils/DSAclean.py index b4605274eea..6c43357019e 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: