Skip to content

Commit 4198d3b

Browse files
authored
Merge pull request #8914 from mikesinouye/ubsan
rsz: clamp max fanout in pre-place gain based buffering
2 parents 9f01383 + 70a7d7e commit 4198d3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rsz/src/RepairDesign.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ void RepairDesign::performEarlySizingRound(int& repaired_net_count)
190190
sta_->checkFanout(drvr_pin, max_, fanout, max_fanout, fanout_slack);
191191

192192
bool repaired_net = false;
193+
if (max_fanout <= 0) {
194+
max_fanout = 1e9;
195+
}
193196

194197
if (performGainBuffering(net, drvr_pin, max_fanout)) {
195198
debugPrint(logger_,

0 commit comments

Comments
 (0)