Network::findInstPinsHierMatching speedup

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-08-16 16:50:57 -07:00
parent e8a6ebe512
commit 61a607c68b
2 changed files with 2 additions and 3 deletions

View File

@ -1047,8 +1047,7 @@ Network::findInstPinsHierMatching(const Instance *instance,
while (pin_iter->hasNext()) {
const Pin *pin = pin_iter->next();
const char *port_name = name(port(pin));
string pin_name;
stringPrint(pin_name, "%s%c%s", inst_name.c_str(), divider_, port_name);
string pin_name = inst_name + divider_ + port_name;
if (pattern->match(pin_name.c_str()))
matches.push_back(pin);
}

View File

@ -1236,7 +1236,7 @@ use_default_arrival_clock()
void
set_use_default_arrival_clock(bool enable)
{
return Sta::sta()->setUseDefaultArrivalClock(enable);
Sta::sta()->setUseDefaultArrivalClock(enable);
}
////////////////////////////////////////////////////////////////