Commit 3f745e7
rsz: use cell id() tie-break for stable buffer-size sort
Per review, tie-break on LibertyCell::id() rather than the cell name: an
integer compare instead of constructing a string per comparison. This matches
the existing buffer comparator in Resizer.cc (findFastBuffers), which already
tie-breaks equal-key cells on id(). String compares are the most expensive
tie-break.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent e988998 commit 3f745e7
2 files changed
Lines changed: 6 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1500 | 1500 | | |
1501 | 1501 | | |
1502 | 1502 | | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
1506 | | - | |
1507 | | - | |
1508 | | - | |
| 1503 | + | |
| 1504 | + | |
1509 | 1505 | | |
1510 | | - | |
1511 | | - | |
| 1506 | + | |
1512 | 1507 | | |
1513 | 1508 | | |
1514 | 1509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
651 | | - | |
652 | | - | |
| 650 | + | |
| 651 | + | |
653 | 652 | | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
| 653 | + | |
660 | 654 | | |
661 | 655 | | |
662 | 656 | | |
| |||
0 commit comments