Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/coreclr/jit/lsra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,22 @@ LinearScan::LinearScan(Compiler* theCompiler)
}
#endif // TARGET_AMD64 || TARGET_ARM64

#ifdef TARGET_AMD64
Comment thread
jakobbotsch marked this conversation as resolved.
// On x64 the OSR method does not restore float/mask registers from the
// tier0 frame, so disallow using those in the tier0 method.
if (m_compiler->doesMethodHavePatchpoints() || m_compiler->doesMethodHavePartialCompilationPatchpoints())
{
#if defined(UNIX_AMD64_ABI)
availableFloatRegs &= ~RBM_FLT_CALLEE_SAVED;
availableDoubleRegs &= ~RBM_FLT_CALLEE_SAVED;
#else
availableFloatRegs &= ~RBM_FLT_CALLEE_SAVED.GetFloatRegSet();
availableDoubleRegs &= ~RBM_FLT_CALLEE_SAVED.GetFloatRegSet();
#endif // UNIX_AMD64_ABI
availableMaskRegs &= ~RBM_MSK_CALLEE_SAVED;
}
Comment thread
jakobbotsch marked this conversation as resolved.
#endif
Comment thread
jakobbotsch marked this conversation as resolved.

#if defined(TARGET_AMD64)
if (evexIsSupported)
{
Expand Down
Loading