From df2622d30014d6c7fc0dfc3b440688ab22331ba2 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Tue, 13 Nov 2018 16:21:22 -0800 Subject: [placer1] Only perform slack redist if legalised --- common/placer1.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/placer1.cc b/common/placer1.cc index b22a66cb..0fd9a227 100644 --- a/common/placer1.cc +++ b/common/placer1.cc @@ -255,12 +255,12 @@ class SAPlacer temp = post_legalise_temp; diameter *= post_legalise_dia_scale; ctx->shuffle(autoplaced); + + // Legalisation is a big change so force a slack redistribution here + if (ctx->slack_redist_iter > 0) + assign_budget(ctx, true /* quiet */); } require_legal = false; - - // Legalisation is a big change so force a slack redistribution here - if (ctx->slack_redist_iter > 0) - assign_budget(ctx, true /* quiet */); } else if (ctx->slack_redist_iter > 0 && iter % ctx->slack_redist_iter == 0) { assign_budget(ctx, true /* quiet */); } -- cgit v1.2.3