Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
peephole
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
peephole
Commits
8dfef611
Commit
8dfef611
authored
Dec 28, 2011
by
Jayke Meijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed two bugs in copyprop.
parent
55c2f6c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/optimize/__init__.py
src/optimize/__init__.py
+2
-1
src/optimize/advanced.py
src/optimize/advanced.py
+1
-1
No files found.
src/optimize/__init__.py
View file @
8dfef611
...
...
@@ -3,7 +3,8 @@ from dataflow import find_basic_blocks
from
standard
import
redundant_move_1
,
redundant_move_2
,
\
redundant_move_3
,
redundant_move_4
,
redundant_load
,
\
redundant_shift
,
redundant_add
from
advanced
import
eliminate_common_subexpressions
,
fold_constants
from
advanced
import
eliminate_common_subexpressions
,
fold_constants
,
\
copy_propagation
def
optimize_global
(
statements
):
...
...
src/optimize/advanced.py
View file @
8dfef611
...
...
@@ -108,4 +108,4 @@ def copy_propagation(block):
count
+=
1
print
"count"
,
count
return
f
alse
return
F
alse
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment