From d27993f0192df545a0796a361e00ad743ce91783 Mon Sep 17 00:00:00 2001 From: Meinhard Kissich Date: Tue, 8 Oct 2024 15:20:33 +0200 Subject: [PATCH] Placer: Fix static legalise radius (#1382) --- common/place/placer_static.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/place/placer_static.cc b/common/place/placer_static.cc index 9b20af30..50f65022 100644 --- a/common/place/placer_static.cc +++ b/common/place/placer_static.cc @@ -1245,7 +1245,7 @@ class StaticPlacer total_iters_noreset++; if (total_iters > int(ccells.size())) { total_iters = 0; - ripup_radius = std::max(std::max(width + 1, height + 1), ripup_radius * 2); + ripup_radius = std::min(std::max(width + 1, height + 1), ripup_radius * 2); } if (total_iters_noreset > std::max(5000, 8 * int(ctx->cells.size()))) {