Save a lookup for router1
This commit is contained in:
parent
d78f5a1d5b
commit
24d702d0be
@ -197,8 +197,9 @@ struct Router
|
|||||||
|
|
||||||
NPNR_ASSERT(next_delay >= 0);
|
NPNR_ASSERT(next_delay >= 0);
|
||||||
|
|
||||||
if (visited.count(next_wire)) {
|
auto it = visited.find(next_wire);
|
||||||
if (visited.at(next_wire).delay <= next_delay + ctx->getDelayEpsilon())
|
if (it != visited.end()) {
|
||||||
|
if (it->second.delay <= next_delay + ctx->getDelayEpsilon())
|
||||||
continue;
|
continue;
|
||||||
#if 0 // FIXME
|
#if 0 // FIXME
|
||||||
if (ctx->debug)
|
if (ctx->debug)
|
||||||
|
Loading…
Reference in New Issue
Block a user