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

Fix failed assertion 'FPbased == FPbased2' #111787

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

filipnavara
Copy link
Member

@filipnavara filipnavara commented Jan 24, 2025

When lvaFrameAddress optimizes one of the temporary variables (referenced as FP-m) to be placed next to existing SP+n variable (eg. OutgoingArgSpace at SP+0) we may end up coalescing a pair-wise load/store between them. A previous attempt to handle the case only accounted for the lvaFrameAddress optimization being applied to both of the variables or neither of them, but it didn't correctly handle the mixed variant.

Fixes #111777

…ation merged SP+n and FP-m stores into a single pair-wise store
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Jan 24, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jan 24, 2025
@filipnavara
Copy link
Member Author

filipnavara commented Jan 24, 2025

Can someone trigger runtime-coreclr libraries-jitstress pipeline on this PR please?

@filipnavara filipnavara changed the title [CI test] Fix assertion failed 'FPbased == FPbased2' [CI test] Fix failed assertion 'FPbased == FPbased2' Jan 24, 2025
@jakobbotsch
Copy link
Member

/azp run runtime-coreclr libraries-jitstress

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@filipnavara

This comment was marked as outdated.

@filipnavara filipnavara reopened this Jan 24, 2025
@EgorBo
Copy link
Member

EgorBo commented Jan 24, 2025

/azp run runtime-coreclr libraries-jitstress

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@filipnavara filipnavara changed the title [CI test] Fix failed assertion 'FPbased == FPbased2' Fix failed assertion 'FPbased == FPbased2' Jan 24, 2025
@filipnavara filipnavara marked this pull request as ready for review January 24, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JIT: Assertion failed 'FPbased == FPbased2' during 'Emit code'
3 participants