aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMatt Johnston <matt@codeconstruct.com.au>2021-12-10 22:10:33 +0800
committerMatt Johnston <matt@codeconstruct.com.au>2021-12-12 22:09:11 +0800
commitfc5b34254f47ef76150ec9f9edc85cda20681656 (patch)
treeee1b7ea7a2b2b354ca20af3392bde2602a68d980 /common
parent80dd442412982af1901dcdf707ddc68379c20e0c (diff)
downloadnextpnr-fc5b34254f47ef76150ec9f9edc85cda20681656.tar.gz
nextpnr-fc5b34254f47ef76150ec9f9edc85cda20681656.tar.bz2
nextpnr-fc5b34254f47ef76150ec9f9edc85cda20681656.zip
ecp5: Keep "visited" local
Otherwise it keeps growing boundless and slows down small arcs
Diffstat (limited to 'common')
-rw-r--r--common/router1.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/router1.cc b/common/router1.cc
index c8585b0b..0ff2bedd 100644
--- a/common/router1.cc
+++ b/common/router1.cc
@@ -108,7 +108,6 @@ struct Router1
dict<arc_key, pool<WireId>> arc_to_wires;
pool<arc_key> queued_arcs;
- dict<WireId, QueuedWire> visited;
std::priority_queue<QueuedWire, std::vector<QueuedWire>, QueuedWire::Greater> queue;
dict<WireId, int> wireScores;
@@ -503,7 +502,7 @@ struct Router1
std::priority_queue<QueuedWire, std::vector<QueuedWire>, QueuedWire::Greater> new_queue;
queue.swap(new_queue);
}
- visited.clear();
+ dict<WireId, QueuedWire> visited;
// A* main loop