Skip to content

mpl: check for merge cluster sizes before merging - #9188

Merged
maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:mpl-honor-thresh-during-merge
Jan 5, 2026
Merged

maliberty merged 2 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:mpl-honor-thresh-during-merge

Conversation

@openroad-ci

Copy link
Copy Markdown
Member

Checks for the merged cluster size before merging, disallowing clusters that exceed the max_macro_ and max_std_cell_ to be merged.

@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 introduces a check to ensure that merging clusters does not violate the maximum size thresholds for macros and standard cells. The implementation adds a new function mergeHonorsMaxThresholds and integrates it into the Type 1 and Type 2 merge logic in mergeChildrenBelowThresholds. The changes are well-structured and improve the robustness of the clustering process. I've found one place where this new check seems to be missing, which I've commented on.

@github-actions

github-actions Bot commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

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

@joaomai
joaomai requested a review from maliberty January 3, 2026 18:44
Signed-off-by: João Mai <jmai@precisioninno.com>
Signed-off-by: João Mai <jmai@precisioninno.com>
@openroad-ci
openroad-ci force-pushed the mpl-honor-thresh-during-merge branch from 2e19cc3 to b2a2369 Compare January 3, 2026 19:03
@github-actions

github-actions Bot commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

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

@maliberty

Copy link
Copy Markdown
Member

CI results?

@joaomai

joaomai commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

Paired with PR #3753 on ORFS.

@AcKoucher

Copy link
Copy Markdown
Contributor

Nice!

@maliberty
maliberty merged commit ac2d843 into The-OpenROAD-Project:master Jan 5, 2026
10 checks passed
@maliberty
maliberty deleted the mpl-honor-thresh-during-merge branch January 5, 2026 18:18
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.

4 participants