Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
peephole
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Taddeüs Kroes
peephole
Commits
2519287f
Commit
2519287f
authored
13 years ago
by
Taddeus Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Moved RESERVED_OUT to live_out set of exit points.
parent
8eef47bd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/liveness.py
+3
-1
3 additions, 1 deletion
src/liveness.py
with
3 additions
and
1 deletion
src/liveness.py
+
3
−
1
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
()
...
...
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