Skip to content

Driver vertex level cache#10155

Merged
maliberty merged 6 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:driver-vertex-level-cache
Apr 16, 2026
Merged

Driver vertex level cache#10155
maliberty merged 6 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:driver-vertex-level-cache

Conversation

@openroad-ci

Copy link
Copy Markdown
Member

Summary

This is part 2 of 2 for OpenSTA API change.
Resizer optimization now uses new OpenSTA APIs for driver vertex level cache.
This simplifies the code and improves robustness against future changes.

Type of Change

  • Refactoring

Impact

There is no QoR or runtime impact.
This should eliminate fatals due to stale vertex level cache in the future.

Verification

  • [ X ] I have verified that the local build succeeds (./etc/Build.sh).
  • [ X ] I have run the relevant tests and they pass.
  • [ X ] My code follows the repository's formatting guidelines.
  • [ X ] I have signed my commits (DCO).

Related Issues

(#9851)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Resizer and its associated modules to eliminate manual management of vertex ordering. By removing internal caching and invalidation logic for driver vertices, the code now directly utilizes the sta engine's levelized vertex retrieval. Feedback indicates a potential logic error in RepairDesign.cc where progress reporting might become inaccurate due to cumulative iteration counts being compared against a per-pass vertex count. Additionally, it is recommended to use size_t for vertex counts to prevent narrowing conversions.

Comment thread src/rsz/src/RepairDesign.cc Outdated
Comment thread src/rsz/src/RepairDesign.hh Outdated
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Signed-off-by: Cho Moon <cmoon@precisioninno.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@precisionmoon precisionmoon requested a review from maliberty April 16, 2026 05:12

@maliberty maliberty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much nicer

@maliberty maliberty merged commit db90716 into The-OpenROAD-Project:master Apr 16, 2026
16 checks passed
@maliberty maliberty deleted the driver-vertex-level-cache branch April 16, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants