-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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] ARM64 - Combine cmp
and shift ops into a single cmp
op
#84605
Conversation
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch, @kunalspathak Issue DetailsDescriptionGive this example: lsl w1, w1, #2
cmp w0, w1 Can be converted into a single cmp w0, w1, LSL #2 This PR will not include the
|
@dotnet/jit-contrib @BruceForstall @tannergooding This is ready. CI linux formatting failure is unrelated. |
NO_WAY("expected a shift-op"); | ||
return INS_OPTS_NONE; |
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.
Should this stay unreached()
?
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.
Shouldn't matter as long as something fails; also the NO_WAY
is more descriptive. There are similar functions doing this.
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.
LGTM
Description
Given this example:
Can be converted into a single
cmp
:This PR will not include the
cmn
version.