Merge pull request #402 from The-OpenROAD-Project-staging/sta_update_0729_fix

Sta update 0729 fix
This commit is contained in:
Eder Monteiro 2026-08-13 16:13:46 -03:00 committed by GitHub
commit a89c2acc4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -590,6 +590,13 @@ PrimaDelayCalc::stampEqns()
C_.setZero(); C_.setZero();
B_.setZero(); B_.setZero();
// The stamps below do not visit the nodes in index order. Reserve room in
// each column so an out of order coeffRef() insert does not shift the packed
// array to make room, which makes stamping quadratic in the node count.
constexpr int non_zero_entry_count = 8;
G_.reserve(Eigen::VectorXi::Constant(order_, non_zero_entry_count));
C_.reserve(Eigen::VectorXi::Constant(order_, non_zero_entry_count));
NetSet drvr_nets(network_); NetSet drvr_nets(network_);
for (ArcDcalcArg &dcalc_arg : *dcalc_args_) { for (ArcDcalcArg &dcalc_arg : *dcalc_args_) {
const Net *net = dcalc_arg.drvrNet(network_); const Net *net = dcalc_arg.drvrNet(network_);