Commit cd0f4d7
committed
dpl: make optimize_mirroring deterministic
net_box_map_ is an unordered_map, so equal-hpwl boxes sorted in
heap-address order (ranges::sort is not stable), making the mirroring
result and the written db non-deterministic. Tie-break by net id.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent 73ab739 commit cd0f4d7
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
0 commit comments