Skip to content

Commit

Permalink
Remove unnecessary par in SDN (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanmohan committed Nov 20, 2023
1 parent 666d06e commit 257465e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions calyx-py/test/correctness/sdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ def insert_stats(prog, name, static=False):
stats.this().count_0 = count_0_sto.out
stats.this().count_1 = count_1_sto.out

stats.control += cb.par(
cb.if_with(flow_eq_0, count_0_incr, count_1_incr),
)
stats.control += cb.if_with(flow_eq_0, count_0_incr, count_1_incr)

# If static, we need to use continuous assignments and not comb groups.
else:
Expand All @@ -63,9 +61,7 @@ def insert_stats(prog, name, static=False):
eq_cell.left = flow
eq_cell.right = 0

stats.control += cb.static_par(
cb.static_if(eq_cell.out, count_0_incr, count_1_incr),
)
stats.control += cb.static_if(eq_cell.out, count_0_incr, count_1_incr)

return stats

Expand Down

0 comments on commit 257465e

Please sign in to comment.