Skip to content

Commit

Permalink
Move assert to prevent incorrect trigger when lvaFrameAddress optimiz…
Browse files Browse the repository at this point in the history
…ation merged SP+n and FP-m stores into a single pair-wise store
  • Loading branch information
filipnavara committed Jan 24, 2025
1 parent d917005 commit 96e4e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/emitarm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12314,9 +12314,9 @@ size_t emitter::emitOutputInstr(insGroup* ig, instrDesc* id, BYTE** dp)
adr2 = emitComp->lvaFrameAddress(varNum2, &FPbased2, true);
ofs2Dist = EA_SIZE_IN_BYTES(size);
#ifdef DEBUG
assert(FPbased == FPbased2);
if (!FPbased)
{
assert(FPbased == FPbased2);
assert(encodingZRtoSP(id->idReg3()) == REG_SP);
}
assert(varNum2 != -1);
Expand Down

0 comments on commit 96e4e8b

Please sign in to comment.