From 257465ee3424934b01732d8f157b98cd82a6a855 Mon Sep 17 00:00:00 2001 From: Anshuman Mohan <10830208+anshumanmohan@users.noreply.github.com> Date: Mon, 20 Nov 2023 11:02:22 -0500 Subject: [PATCH] Remove unnecessary par in SDN (#1786) --- calyx-py/test/correctness/sdn.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/calyx-py/test/correctness/sdn.py b/calyx-py/test/correctness/sdn.py index 43650f0cf9..c229523063 100644 --- a/calyx-py/test/correctness/sdn.py +++ b/calyx-py/test/correctness/sdn.py @@ -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: @@ -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