Skip to content

Conversation

@jakobbotsch
Copy link
Member

Physical promotion computes liveness for all locals it promotes, including the liveness of the remainder of the local (i.e. all the non-promoted segments of the struct). This liveness information is used to skip unnecessary stores during decomposition. However, in some cases physical promotion may need to use the base struct local as scratch space to handle various edge cases (for example, partially overlapping copies). In those cases the remainder liveness cannot be used to skip optimizations. This was already handled in one place; this change handles it in another place as well.

Fix #99882

Physical promotion computes liveness for all locals it promotes,
including the liveness of the remainder of the local (i.e. all the
non-promoted segments of the struct). This liveness information is used
to skip unnecessary stores during decomposition. However, in some cases
physical promotion may need to use the base struct local as scratch
space to handle various edge cases (for example, partially overlapping
copies). In those cases the remainder liveness cannot be used to skip
optimizations. This was already handled in one place; this change
handles it in another place as well.

Fix dotnet#99882
@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 18, 2024
@dotnet-policy-service
Copy link
Contributor

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

@jakobbotsch
Copy link
Member Author

/azp run runtime-jit-experimental

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jakobbotsch jakobbotsch marked this pull request as ready for review March 18, 2024 15:01
@jakobbotsch
Copy link
Member Author

jakobbotsch commented Mar 18, 2024

cc @dotnet/jit-contrib PTAL @AndyAyersMS

No diffs.

@jakobbotsch jakobbotsch requested a review from AndyAyersMS March 18, 2024 15:04
@jakobbotsch jakobbotsch merged commit 15b8077 into dotnet:main Mar 18, 2024
@jakobbotsch jakobbotsch deleted the fix-99882 branch March 18, 2024 15:37
@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2024
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.

Test failure: Interop/Swift/SwiftAbiStress/SwiftAbiStress/SwiftAbiStress.cmd

2 participants