Skip to content
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

Arm64Emitter: Don't optimize ADD to MOV for SP #12566

Merged
merged 1 commit into from Feb 6, 2024

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Feb 6, 2024

Unlike ADD (immediate), MOV (register) treats SP as ZR. Therefore the ADDI2R optimization that was added in 67791d2 can't optimize ADD to MOV when exactly one of the registers is SP.

There currently isn't any code in Dolphin that calls ADDI2R with parameters that would trigger this case.

Unlike ADD (immediate), MOV (register) treats SP as ZR. Therefore the
ADDI2R optimization that was added in 67791d2 can't optimize ADD to
MOV when exactly one of the registers is SP.

There currently isn't any code in Dolphin that calls ADDI2R with
parameters that would trigger this case.
Copy link
Member

@lioncash lioncash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@lioncash lioncash merged commit a50ab40 into dolphin-emu:master Feb 6, 2024
11 checks passed
@JosJuice JosJuice deleted the arm64-add-imm-sp branch February 7, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants