GraphDelayCalc::findDelays no need to visit if iter empty

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-08-13 11:43:40 -07:00
parent 4920f673a8
commit 5b56558e7a
1 changed files with 4 additions and 2 deletions

View File

@ -260,8 +260,10 @@ GraphDelayCalc::findDelays(Level level)
if (incremental_)
seedInvalidDelays();
FindVertexDelays visitor(this);
dcalc_count += iter_->visitParallel(level, &visitor);
if (!iter_->empty()) {
FindVertexDelays visitor(this);
dcalc_count += iter_->visitParallel(level, &visitor);
}
// Timing checks require slews at both ends of the arc,
// so find their delays after all slews are known.