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

Fold "X relop 0" in assertprop #110076

Merged
merged 3 commits into from
Nov 22, 2024
Merged

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Nov 22, 2024

Use optAssertionProp_RangeProperties to fold various "X relop 0" patterns in global assertion prop.

This, technically, repeats what RBO does, but with help of assertions. There should be more diffs if we generalize it.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Nov 22, 2024
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@EgorBo EgorBo marked this pull request as ready for review November 22, 2024 10:15
@EgorBo
Copy link
Member Author

EgorBo commented Nov 22, 2024

PTAL @jakobbotsch @dotnet/jit-contrib Diffs I'll look into making it more advanced

@EgorBo EgorBo requested a review from jakobbotsch November 22, 2024 12:44
@EgorBo EgorBo merged commit b5bdce2 into dotnet:main Nov 22, 2024
107 of 108 checks passed
@EgorBo EgorBo deleted the fold-relops-in-assertprop branch November 22, 2024 13:56
jkotas added a commit that referenced this pull request Nov 25, 2024
EgorBo pushed a commit that referenced this pull request Nov 25, 2024
* Revert "Fold "X relop 0" in assertprop (#110076)"

This reverts commit b5bdce2.

* Dummy edit
mikelle-rogers pushed a commit to mikelle-rogers/runtime that referenced this pull request Dec 10, 2024
mikelle-rogers pushed a commit to mikelle-rogers/runtime that referenced this pull request Dec 10, 2024
* Revert "Fold "X relop 0" in assertprop (dotnet#110076)"

This reverts commit b5bdce2.

* Dummy edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants