Skip to content

Commit

Permalink
setInternalRegsDelayFree only for candidate lclVars (dotnet#62884)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak authored Dec 17, 2021
1 parent dda44e1 commit a3aec10
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/coreclr/jit/lsrabuild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3465,8 +3465,12 @@ int LinearScan::BuildStoreLoc(GenTreeLclVarCommon* storeLoc)
{
// Need an additional register to create a SIMD8 from EAX/EDX without SSE4.1.
buildInternalFloatRegisterDefForNode(storeLoc, allSIMDRegs());
// This internal register must be different from the target register.
setInternalRegsDelayFree = true;

if (isCandidateVar(varDsc))
{
// This internal register must be different from the target register.
setInternalRegsDelayFree = true;
}
}
}
#endif // FEATURE_SIMD && TARGET_X86
Expand Down

0 comments on commit a3aec10

Please sign in to comment.