-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Remove unneeded unconditional jumps for Arm/Arm64 #70389
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
Conversation
jit format changes bug fixes Arm fixes
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
src/coreclr/jit/emit.cpp
Outdated
| instrDescJmp* nextJmp = jmp->idjNext; | ||
|
|
||
| if (jmp->idInsFmt() == IF_LABEL && emitIsUncondJump(jmp) && jmp->idjIsRemovableJmpCandidate) | ||
| if (emitIsUncondJump(jmp) && jmp->idjIsRemovableJmpCandidate) |
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.
You need the IF_LABEL check because it will assert on XARCH if an lea is present in the jump list and is passed to emitIsUncondJump
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.
Ah ok. Let me put it back.
| #ifdef TARGET_XARCH | ||
| instruction jmpInstr = INS_jmp; | ||
| #else // TARGET_ARM64 | ||
| instruction jmpInstr = INS_b; | ||
| #endif |
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.
Won't the assumption that it's either ARM or XARCH be invalid on LoongArch64 builds?
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.
they will be and I need to do fix/validate it. This is draft and I would like to get a sense of its state before I spend time on other archs.
|
As expected, Arm needs some more fixes, will do it when I get a chance. |
|
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
Extend #69041 for Arm/Arm64.
cc: @Wraith2