router2: Don't use estimates for constant nets

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2023-11-07 15:25:42 +01:00 committed by myrtle
parent 7b0e082000
commit 4c6003ac0b

View File

@ -782,7 +782,7 @@ struct Router2
next_score.delay = curr.score.delay + cfg.get_base_cost(ctx, next, uh, crit_weight);
next_score.cost = curr.score.cost + score_wire_for_arc(net, i, phys_pin, next, uh, crit_weight);
next_score.togo_cost =
cfg.estimate_weight * get_togo_cost(net, i, next_idx, src_wire, true, crit_weight);
const_mode ? 0 : cfg.estimate_weight * get_togo_cost(net, i, next_idx, src_wire, true, crit_weight);
if (was_visited_bwd(next_idx, next_score.delay)) {
// Don't expand the same node twice.
continue;