Skip to content

ARM64: Remove the unnecessary copying of the PSPSym when we do a localloc #5705

@briansull

Description

@briansull

When we have a localloc (stack alloc) operation (and a PSPSym)
we generate code to move the PSPSym value.
However we are using fp relative addressing so it is not getting moved properly.

Sample method:
; Assembly listing for method DomainNeutralILStubClass:IL_STUB_COMtoCLR(long):int:this
...
G_M25153_IG03:
ldr x0, [fp,#96] // [V11 PSPSym]
stp xzr, xzr, [sp,#-16]!
stp xzr, xzr, [sp,#-16]!
sub sp, sp, dotnet/coreclr#16
str x0, [fp,#96] // [V11 PSPSym]

category:cq
theme:basic-cq
skill-level:intermediate
cost:small

Metadata

Metadata

Assignees

Labels

arch-arm64area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIbug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions