From deb69b81862c77ad7ab9ff90d44764a617458967 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Povi=C5=A1er?= Date: Tue, 9 Jan 2024 17:25:31 +0100 Subject: [PATCH] rtlil: Do not create dummy wires when deleting wires in connections --- kernel/rtlil.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index badb72f2b20..47598825674 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -2157,12 +2157,10 @@ void RTLIL::Module::remove(const pool &wires) } void operator()(RTLIL::SigSpec &lhs, RTLIL::SigSpec &rhs) { - // When a deleted wire occurs on the lhs we can just remove that part + // If a deleted wire occurs on the lhs or rhs we just remove that part // of the assignment lhs.remove2(*wires_p, &rhs); - - // Then replace all rhs occurrences with a dummy wire - (*this)(rhs); + rhs.remove2(*wires_p, &lhs); } };