aboutsummaryrefslogtreecommitdiffstats
path: root/common/place_sa.cc
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-17 16:18:59 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-17 16:18:59 +0200
commit2f9810a346e35de0dfe00607ee462436af545429 (patch)
treec79f173c94b16b41984293982c887553d4532778 /common/place_sa.cc
parentf66999a8830c5829872b93ce15491de1673cb4e3 (diff)
downloadnextpnr-2f9810a346e35de0dfe00607ee462436af545429.tar.gz
nextpnr-2f9810a346e35de0dfe00607ee462436af545429.tar.bz2
nextpnr-2f9810a346e35de0dfe00607ee462436af545429.zip
Speed up placer
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'common/place_sa.cc')
-rw-r--r--common/place_sa.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/common/place_sa.cc b/common/place_sa.cc
index 12ca30d8..a0c32c1d 100644
--- a/common/place_sa.cc
+++ b/common/place_sa.cc
@@ -191,16 +191,12 @@ static bool try_swap_position(Design *design, CellInfo *cell, BelId newBel,
other_cell = design->cells[other];
chip.unbindBel(newBel);
}
- if (!isValidBelForCell(design, cell, newBel))
- goto swap_fail;
for (const auto &port : cell->ports)
if (port.second.net != nullptr)
update.insert(port.second.net);
if (other != IdString()) {
- if (!isValidBelForCell(design, other_cell, oldBel))
- goto swap_fail;
for (const auto &port : other_cell->ports)
if (port.second.net != nullptr)
update.insert(port.second.net);