Skip to content

rsz: Run findBufferSizes before annotating slews in performEarlySizingRound - #11195

Open
mikesinouye wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
mikesinouye:sigill
Open

rsz: Run findBufferSizes before annotating slews in performEarlySizingRound#11195
mikesinouye wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
mikesinouye:sigill

Conversation

@mikesinouye

Copy link
Copy Markdown
Contributor

Summary

RepairDesign::performEarlySizingRound() iterates over drivers and calls sta_->setAnnotatedSlew(drvr, resizer_->tgt_slew_corner_, ...) before findBufferSizes() is called. tgt_slew_corner_ can be nullptr if findBufferSizes() had not executed yet at that point (or any other command that would have populated it).

Type of Change

  • Bug fix

Impact

Prevent a sigill in repair_design -pre_placement

Verification

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

…gRound

Signed-off-by: Mike Inouye <mikeinouye@google.com>
Co-authored-by: Simon Bucher <ebners@google.com>
@mikesinouye
mikesinouye requested a review from a team as a code owner August 20, 2026 20:03
@mikesinouye
mikesinouye requested a review from jhkim-pii August 20, 2026 20:03

@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 moves the call to findBufferSizes() to the beginning of the RepairDesign::performEarlySizingRound function, ensuring it executes before user annotations are tracked and other processing occurs. There are no review comments, and I have no feedback to provide.

Signed-off-by: Mike Inouye <mikeinouye@google.com>
@jhkim-pii

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c52ede8043

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

void RepairDesign::performEarlySizingRound(int& repaired_net_count)
{
debugPrint(logger_, RSZ, "early_sizing", 1, "Performing early sizing round.");
findBufferSizes();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Initialize the target slew instead of only buffer sizes

When tgt_slew_corner_ is null—the state this change is intended to handle—findBufferSizes() does not populate it: that function only calls findFastBuffers(), which may return immediately for a populated buffer cache and never invokes findBufferTargetSlews(). The corner is actually assigned by findBufferTargetSlews() through findTargetLoads(), so the subsequent setAnnotatedSlew() can still receive a null corner and reproduce the reported crash; initialize the target loads/slews before annotating instead.

AGENTS.md reference: AGENTS.md:L20-L20

Useful? React with 👍 / 👎.

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.

Codex comment looks valid.
Can findBufferSizes() make tgt_slew_corner_ non-null?

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.

2 participants