Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
16fe45c9
Commit
16fe45c9
authored
19 years ago
by
Patrick Meredith
Browse files
Options
Downloads
Patches
Plain Diff
Updated to be less restrictive on what is matched
llvm-svn: 23712
parent
c3a89c52
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/utils/DSAclean.py
+3
-1
3 additions, 1 deletion
llvm/utils/DSAclean.py
with
3 additions
and
1 deletion
llvm/utils/DSAclean.py
+
3
−
1
View file @
16fe45c9
#! /usr/bin/python
#! /usr/bin/python
#changelog:
#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
#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
#%tmp.#, i.e. it now will remove %tmp.12.3.15 etc, additionally fixed a spelling error in
#the comments
#the comments
...
@@ -18,7 +20,7 @@ output = open(sys.argv[2], 'w')
...
@@ -18,7 +20,7 @@ output = open(sys.argv[2], 'w')
#it would kill old computers
#it would kill old computers
buffer
=
input
.
readline
()
buffer
=
input
.
readline
()
while
buffer
!=
''
:
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
#skip next line, write neither this line nor the next
buffer
=
input
.
readline
()
buffer
=
input
.
readline
()
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment