Skip to content

Commit a46451d

Browse files
committed
rtlil: Avoid dummy wires when deleting wires in connections
1 parent f2404d3 commit a46451d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

kernel/rtlil.cc

+2-4
Original file line numberDiff line numberDiff line change
@@ -2157,12 +2157,10 @@ void RTLIL::Module::remove(const pool<RTLIL::Wire*> &wires)
21572157
}
21582158

21592159
void operator()(RTLIL::SigSpec &lhs, RTLIL::SigSpec &rhs) {
2160-
// When a deleted wire occurs on the lhs we can just remove that part
2160+
// If a deleted wire occurs on the lhs or rhs we just remove that part
21612161
// of the assignment
21622162
lhs.remove2(*wires_p, &rhs);
2163-
2164-
// Then replace all rhs occurrences with a dummy wire
2165-
(*this)(rhs);
2163+
rhs.remove2(*wires_p, &lhs);
21662164
}
21672165
};
21682166

0 commit comments

Comments
 (0)