router2: Don't use estimates for constant nets
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
7b0e082000
commit
4c6003ac0b
@ -782,7 +782,7 @@ struct Router2
|
|||||||
next_score.delay = curr.score.delay + cfg.get_base_cost(ctx, next, uh, crit_weight);
|
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.cost = curr.score.cost + score_wire_for_arc(net, i, phys_pin, next, uh, crit_weight);
|
||||||
next_score.togo_cost =
|
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)) {
|
if (was_visited_bwd(next_idx, next_score.delay)) {
|
||||||
// Don't expand the same node twice.
|
// Don't expand the same node twice.
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user