Skip to content

Commit

Permalink
Fix prune symbols removing used symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
phschaad committed Jan 21, 2025
1 parent 3509351 commit 4fe276f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dace/transformation/passes/prune_symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def used_symbols(self, sdfg: SDFG) -> Set[str]:
if node.code_exit.language != dtypes.Language.Python:
result |= symbolic.symbols_in_code(node.code_exit.as_string, sdfg.symbols.keys(),
node.ignored_symbols)
else:
result |= block.used_symbols(all_symbols=True, with_contents=False)

for e in sdfg.all_interstate_edges():
result |= e.data.free_symbols
Expand Down

0 comments on commit 4fe276f

Please sign in to comment.