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

[Expression Simplifcation] Relax checks in CollapseNestedConstants to allow more simplifcations #425

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

rihi
Copy link
Collaborator

@rihi rihi commented Jul 3, 2024

This PR relaxes the check for constants to be equal, by only checking that the size of their types matches. This will allow nested expressions with mixed types, like pointer + integer to be simplified.

@rihi rihi self-assigned this Jul 3, 2024
@blattm blattm self-requested a review July 4, 2024 10:58
Co-authored-by: Manuel Blatt <[email protected]>
@blattm blattm merged commit 3ed0094 into main Jul 8, 2024
1 check passed
@blattm blattm deleted the expression-simplifcation/improve-nested-collapse branch July 8, 2024 10:06
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