Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Don't try to replace SIMD fields.
  • Loading branch information
Sergey Andreenko committed Jul 7, 2020
commit 9daf9c1e9db930195a50c4f81d92285a43244e35
10 changes: 1 addition & 9 deletions src/coreclr/src/jit/lclvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3684,17 +3684,9 @@ bool LclVarDsc::CanBeReplacedWithItsField(Compiler* comp) const
// In order to do that we have to have its field `a` in memory. Right now lowering cannot
// handle RETURN struct(multiple registers)->SIMD16(one register), but it can be improved.
LclVarDsc* fieldDsc = comp->lvaGetDesc(lvFieldLclStart);
if (fieldDsc->TypeGet() == TYP_SIMD12 || fieldDsc->TypeGet() == TYP_SIMD16)
if (varTypeIsSIMD(fieldDsc))
{
#if defined(TARGET_ARM64)
if (!comp->isOpaqueSIMDLclVar(fieldDsc))
{
return false;
}
#else // !TARGET_ARM64
// TODO-X64-CQ: check for `isOpaqueSIMDLclVar` after https://github.com/dotnet/runtime/issues/9578.
return false;
#endif //! TARGET_ARM64
}
#endif // FEATURE_SIMD

Expand Down