Skip to content

Conversation

@kunalspathak
Copy link
Contributor

@kunalspathak kunalspathak commented Jun 7, 2022

Extend #69041 for Arm/Arm64.

cc: @Wraith2

jit format changes

bug fixes

Arm fixes
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jun 7, 2022
@ghost ghost assigned kunalspathak Jun 7, 2022
@ghost
Copy link

ghost commented Jun 7, 2022

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

Issue Details

Extend #69041 for Arm64.

cc: @Wraith2

Author: kunalspathak
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

instrDescJmp* nextJmp = jmp->idjNext;

if (jmp->idInsFmt() == IF_LABEL && emitIsUncondJump(jmp) && jmp->idjIsRemovableJmpCandidate)
if (emitIsUncondJump(jmp) && jmp->idjIsRemovableJmpCandidate)
Copy link
Contributor

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

Copy link
Contributor Author

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.

@kunalspathak kunalspathak changed the title Remove unneeded unconditional jumps for Arm64 Remove unneeded unconditional jumps for Arm/Arm64 Jun 7, 2022
Comment on lines +1011 to +1015
#ifdef TARGET_XARCH
instruction jmpInstr = INS_jmp;
#else // TARGET_ARM64
instruction jmpInstr = INS_b;
#endif
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@kunalspathak
Copy link
Contributor Author

As expected, Arm needs some more fixes, will do it when I get a chance.

@ghost
Copy link

ghost commented Jul 8, 2022

Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it.

@ghost ghost locked as resolved and limited conversation to collaborators Aug 7, 2022
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

3 participants