Skip to content

rsz: ensure rsz resets buffer_cells_ when dont_use_ changes to force …#3491

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
gadfort:rsz-reset-state
Jun 20, 2023
Merged

rsz: ensure rsz resets buffer_cells_ when dont_use_ changes to force …#3491
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
gadfort:rsz-reset-state

Conversation

@gadfort
Copy link
Copy Markdown
Contributor

@gadfort gadfort commented Jun 20, 2023

…it to find buffers again ensuring it honors the dont_use changes

Fixes:

  • changes to dont_use that happen to overlap with the buffer_cells_ didn't ensure it selected those cells after they were unset.

…it to find buffers again ensuring it honors the dont_use changes

Signed-off-by: Peter Gadfort <gadfort@zeroasic.com>
@gadfort gadfort requested a review from maliberty June 20, 2023 13:02
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Comment thread src/rsz/src/Resizer.cc
dont_use_.insert(cell);
else
dont_use_.erase(cell);

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.

warning: statement should be inside braces [google-readability-braces-around-statements]

Suggested change
if (dont_use) {

src/rsz/src/Resizer.cc:1273:

-   else
+   } else

Comment thread src/rsz/src/Resizer.cc
Comment on lines +1274 to +1275
buffer_cells_.clear();
buffer_lowest_drive_ = nullptr;
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.

warning: statement should be inside braces [google-readability-braces-around-statements]

Suggested change
buffer_cells_.clear();
buffer_lowest_drive_ = nullptr;
else {
dont_use_.erase(cell);
}

@maliberty maliberty merged commit a7f84d5 into The-OpenROAD-Project:master Jun 20, 2023
@gadfort gadfort deleted the rsz-reset-state branch June 22, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants