Skip to content
Snippets Groups Projects
Commit c50278c8 authored by ferrari's avatar ferrari
Browse files

Fix lifetime for memory operation

parent 564949c9
Branches
No related tags found
No related merge requests found
......@@ -68,6 +68,7 @@ def op_tree(tree):
else:
raise KeyError(f'{group} not found in:\n{tree}')
program[i].append(Operation('mem', j, tree[j].index(group), i))
program[j][tree[j].index(group)].lifetime = i
for i, step in enumerate(program):
for j, op in enumerate(step):
clean_list[op.lifetime].append((i, j))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment