-
Notifications
You must be signed in to change notification settings - Fork 5.2k
arm64: Optimise GT/GE/LT/LE comparisons to constant zero #119758
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
Open
jonathandavies-arm
wants to merge
9
commits into
dotnet:main
Choose a base branch
from
jonathandavies-arm:upstream/ce/flag-zero
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
arm64: Optimise GT/GE/LT/LE comparisons to constant zero #119758
jonathandavies-arm
wants to merge
9
commits into
dotnet:main
from
jonathandavies-arm:upstream/ce/flag-zero
+530
−50
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
This was referenced Sep 26, 2025
Open
Diffs show a small number of regressions, e.g.: ; System.IO.Tests.File_NotifyFilter_Tests:FileSystemWatcher_File_NotifyFilter_Size(int):this (FullOpts)
@@ -160,11 +160,13 @@ G_M49668_IG03: ; bbWeight=0.50, gcVars=0000000000008000 {V03}, gcrefRegs=
movk x0, #1 LSL #32
str x0, [x19, #0x18]
mov w23, wzr
- and w0, w20, #124
cmp w20, #8
ccmp w20, #16, z, ne
- ccmp w0, #0, 0, ne
- bgt G_M49668_IG04
+ cset x0, eq
+ ands w1, w20, #124
+ cset x1, gt
+ orr w0, w0, w1
+ cbnz w0, G_M49668_IG04
movz x0, #0xD1FFAB1E // code for System.PlatformDetection:get_IsWindows7():bool
movk x0, #0xD1FFAB1E LSL #16
movk x0, #1 LSL #32
@@ -174,7 +176,7 @@ G_M49668_IG03: ; bbWeight=0.50, gcVars=0000000000008000 {V03}, gcrefRegs=
cbz w0, G_M49668_IG05
cmp w20, #4
bne G_M49668_IG05
- ;; size=132 bbWeight=0.50 PerfScore 12.75
+ ;; size=140 bbWeight=0.50 PerfScore 13.25 |
EgorBo
approved these changes
Oct 1, 2025
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.
Thanks for adding tests!
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
community-contribution
Indicates that the PR has been added by a community member
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.