Skip to content

Commit

Permalink
[dace] Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
edopao committed Feb 24, 2024
1 parent 57391e2 commit 2e401c0
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
@@ -665,18 +665,7 @@ def build_if_state(arg, state):
# as well as the conditional state transition
sdfg.remove_nodes_from([tbr_state, fbr_state])
else:
if tbr_state.is_empty():
sdfg.edges_between(stmt_state, join_state)[0].condition = sdfg.edges_between(
stmt_state, tbr_state
)[0].condition
sdfg.remove_node(tbr_state)
elif fbr_state.is_empty():
sdfg.edges_between(stmt_state, join_state)[0].condition = sdfg.edges_between(
stmt_state, fbr_state
)[0].condition
sdfg.remove_node(fbr_state)
else:
sdfg.remove_edge(sdfg.edges_between(stmt_state, join_state)[0])
sdfg.remove_edge(sdfg.edges_between(stmt_state, join_state)[0])
# the if-statement condition is not used in current state
current_state.remove_node(ctx_stmt_node.value)

0 comments on commit 2e401c0

Please sign in to comment.