From 89e15d488ad5c24536ef9ee5762995dfe2d02c6e Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 1 Dec 2019 14:18:10 +0000 Subject: [PATCH] HeAP: fix region constraint handling Signed-off-by: David Shah --- common/placer_heap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/placer_heap.cc b/common/placer_heap.cc index 80ce67b2..01e50123 100644 --- a/common/placer_heap.cc +++ b/common/placer_heap.cc @@ -947,7 +947,7 @@ class HeAPPlacer visit.pop(); BelId target = ctx->getBelByLocation(ploc); if (vc->region != nullptr && vc->region->constr_bels && !vc->region->bels.count(target)) - continue; + goto fail; CellInfo *bound; if (target == BelId() || ctx->getBelType(target) != vc->type) goto fail;