Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drt: slight routeNet_postAstarPatchMinAreaVio refactor #6389

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bnmfw
Copy link
Contributor

@bnmfw bnmfw commented Dec 19, 2024

This PR is ISPD and Secure CI safe. Tackles #5610.

While debugging #6326 I had to take a look at routeNet_postAstarPatchMinAreaVio where I noticed a weirdly verbose chunk of boolean logic that was also duplicated. I made a helper function with the condensed logic to eliminate duplication.

@bnmfw bnmfw requested a review from osamahammad21 December 19, 2024 17:00
@bnmfw bnmfw added the drt Detailed Routing label Dec 19, 2024
Copy link
Contributor

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

Comment on lines +3483 to +3484
bool bpPatchStyle = true; // style 1: left only; 0: right only
bool epPatchStyle = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider using an enum for clarity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drt Detailed Routing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants