Skip to content

Commit

Permalink
#18 Handle multiple stack vars instruction in condensed graph
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcere committed Dec 23, 2024
1 parent 6c6da3e commit 4c29c4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/greedy/greedy_new_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,9 @@ def _is_condensed(self, node):
"""
Whether to consider the instruction associated to the node
"""
return "STORE" in node or any(self._stack_var_copies_needed[out_stack] > 1 or out_stack in self._final_stack
for out_stack in self._id2instr[node]["outpt_sk"])
return "STORE" in node or self._id2instr[node]["outpt_sk"] > 1 or \
any(self._stack_var_copies_needed[out_stack] > 1 or out_stack in self._final_stack
for out_stack in self._id2instr[node]["outpt_sk"])

def _compute_top_can_used(self, instr: instr_JSON_T, top_can_be_used: Dict[var_id_T, Set[var_id_T]]) -> Set[
var_id_T]:
Expand Down

0 comments on commit 4c29c4f

Please sign in to comment.