1
0
mirror of synced 2026-04-28 12:59:00 +00:00

Optimizing no-op cell->setPort()

This commit is contained in:
Clifford Wolf
2015-01-17 12:04:40 +01:00
parent 8ce8a230f4
commit b32ba6f568

View File

@@ -1839,7 +1839,9 @@ void RTLIL::Cell::setPort(RTLIL::IdString portname, RTLIL::SigSpec signal)
connections_[portname] = RTLIL::SigSpec();
conn_it = connections_.find(portname);
log_assert(conn_it != connections_.end());
}
} else
if (conn_it->second == signal)
return;
for (auto mon : module->monitors)
mon->notify_connect(this, conn_it->first, conn_it->second, signal);