Save a lookup for router1

This commit is contained in:
Eddie Hung 2018-09-04 09:05:53 -07:00
parent d78f5a1d5b
commit 24d702d0be

View File

@ -197,8 +197,9 @@ struct Router
NPNR_ASSERT(next_delay >= 0);
if (visited.count(next_wire)) {
if (visited.at(next_wire).delay <= next_delay + ctx->getDelayEpsilon())
auto it = visited.find(next_wire);
if (it != visited.end()) {
if (it->second.delay <= next_delay + ctx->getDelayEpsilon())
continue;
#if 0 // FIXME
if (ctx->debug)