未验证 提交 7bf9ae2e 编写于 作者: A Andy Ayers 提交者: GitHub

JIT: Use small register types for some enregisterable locals (#67274)

Fix two cases where small enregisterable locals can't be saved to the stack
using actual (widened) types:
* small memory args for OSX ARM64
* promoted fields of OSR locals

Closes #67152.
Closes #67188.
上级 6019cdac
......@@ -3825,8 +3825,30 @@ var_types LclVarDsc::GetRegisterType() const
// Return Value:
// TYP_UNDEF if the layout is not enregistrable, the register type otherwise.
//
// Notes:
// Special cases are small OSX ARM64 memory params (where args are not widened)
// and small local promoted fields (which use Tier0 frame space as stack homes).
//
var_types LclVarDsc::GetActualRegisterType() const
{
if (varTypeIsSmall(TypeGet()))
{
if (compMacOsArm64Abi() && lvIsParam && !lvIsRegArg)
{
return GetRegisterType();
}
if (lvIsOSRLocal && lvIsStructField)
{
#if defined(TARGET_X86)
// Revisit when we support OSR on x86
unreached();
#else
return GetRegisterType();
#endif
}
}
return genActualType(GetRegisterType());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册