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
2519287f
Commit
2519287f
authored
Dec 30, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved RESERVED_OUT to live_out set of exit points.
parent
8eef47bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/liveness.py
src/liveness.py
+3
-1
No files found.
src/liveness.py
View file @
2519287f
...
...
@@ -38,7 +38,8 @@ def is_reg_dead_after(reg, block, index, known_jump_targets=[]):
# If dead within the same block, check if the register is in the block's
# live_out set
return
reg
not
in
RESERVED_OUT
and
reg
not
in
block
.
live_out
#return reg not in RESERVED_OUT and reg not in block.live_out
return
reg
not
in
block
.
live_out
def
create_use_def
(
block
):
...
...
@@ -97,6 +98,7 @@ def create_in_out(blocks):
for
b
in
blocks
:
if
b
.
edges_from
and
not
b
.
edges_to
:
work_list
.
add
(
b
)
b
.
live_out
=
set
(
RESERVED_OUT
)
while
len
(
work_list
):
b
=
work_list
.
pop
()
...
...
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