aboutsummaryrefslogtreecommitdiffstats
path: root/common/placer1.cc
diff options
context:
space:
mode:
Diffstat (limited to 'common/placer1.cc')
-rw-r--r--common/placer1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/placer1.cc b/common/placer1.cc
index 278bf466..394bee62 100644
--- a/common/placer1.cc
+++ b/common/placer1.cc
@@ -237,7 +237,7 @@ class SAPlacer
diameter *= post_legalise_dia_scale;
ctx->shuffle(autoplaced);
assign_budget(ctx);
- } else if (iter % ctx->slack_redist_iter == 0) {
+ } else if (ctx->slack_redist_iter > 0 && iterCnt % ctx->slack_redist_iter == 0) {
assign_budget(ctx, true /* quiet */);
}