From 9f84a928781f638c639a86fbb82d351a5fa88aa6 Mon Sep 17 00:00:00 2001 From: Akash Levy Date: Sat, 16 Nov 2024 23:20:09 -0800 Subject: [PATCH] Update passes/pmgen/peepopt_muxadd.pmg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Martin PoviĊĦer --- passes/pmgen/peepopt_muxadd.pmg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/passes/pmgen/peepopt_muxadd.pmg b/passes/pmgen/peepopt_muxadd.pmg index d4fd3cc4d7a..421b89366ea 100644 --- a/passes/pmgen/peepopt_muxadd.pmg +++ b/passes/pmgen/peepopt_muxadd.pmg @@ -19,9 +19,8 @@ code add_y add_a add_b add_y = port(add, \Y); // Fanout of each adder Y bit should be 1 (no bit-split) - for (auto bit : add_y) - if (nusers(bit) != 2) - reject; + if (nusers(add_y) != 2) + reject; // A and B can be interchanged branch;