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

Stop using a callee-saved register for scratch0 on aarch64 #6312

Merged
merged 3 commits into from Sep 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion yjit/src/backend/arm64/mod.rs
Expand Up @@ -69,7 +69,8 @@ impl From<&Opnd> for A64Opnd {
impl Assembler
{
// A special scratch register for intermediate processing.
const SCRATCH0: A64Opnd = A64Opnd::Reg(X22_REG);
// This register is caller-saved (so we don't have to save it before using it)
const SCRATCH0: A64Opnd = A64Opnd::Reg(X15_REG);
k0kubun marked this conversation as resolved.
Show resolved Hide resolved

/// Get the list of registers from which we will allocate on this platform
/// These are caller-saved registers
Expand Down