-
Notifications
You must be signed in to change notification settings - Fork 5k
JIT: Add morphing to LE_UN/GT_UN(expr, uint.MaxValue) (dotnet#76525) #113037
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
JIT: Add morphing to LE_UN/GT_UN(expr, uint.MaxValue) (dotnet#76525) #113037
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
@dotnet-policy-service agree company="Microsoft" |
Seems like CI failed with
|
That's probably because this PR isn't handling the things pointed out here: #76525 (comment) |
Thank you for pointing it out. Will check the issue comment and fix. |
4fe1edc
to
907e97c
Compare
There are some cases in the diffs where the optimization is not kicking in: Can you check why? |
I just noticed that the above was a tier 0 method. It looks like |
* Add morphing for comparison between uint.MaxValue and a ulong value. * Remove assertions, which no longer is relevant. * Add a check to lsra to only use BMI2 if zero flag will not be set. * Add a profitability check to optimize EQ/NE(op, 0) only if op has constant operand.
907e97c
to
440adf9
Compare
/azp run Fuzzlyn |
Azure Pipelines successfully started running 1 pipeline(s). |
Hi @jakobbotsch, I tried to review the Fuzzlyn results, but there are many errors that I’m having trouble interpreting. Sorry to bother you, but could you help me understand what they mean or guide me on how to proceed? Thanks in advance! |
I think the Fuzzlyn found issues are unrelated to this PR. I need to take another look, but I don't think anything more is needed from your side. |
@jakobbotsch
|
Try moving !tree->gtSetFlags() to line 4866... |
This reverts commit 00acd28.
@jakobbotsch Thanks for checking. Reverted the change to the one I commented here. |
/azp run runtime-coreclr superpmi-replay |
Azure Pipelines successfully started running 1 pipeline(s). |
The failure is #115070, not sure why it is not being picked up automatically. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work on this!
/ba-g Failure is #115070 |
FYI jit-format failed here. I will fix as part of #115731. |
Weird, looks like it failed 7 minutes after I merged this. Not sure why the failure wasn't there before that. |
Add morphing for comparison between uint.MaxValue and a ulong value.
Contribute to: #76525