Skip to content

Commit

Permalink
Account for UpperVector saves in minRegs (#31773)
Browse files Browse the repository at this point in the history
When we use a jitStressRegs mode that limits the number of registers, we need to account for the UpperVectorSave.

Fix #31727
  • Loading branch information
CarolEidt authored Feb 5, 2020
1 parent 1518782 commit 516956a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/coreclr/src/jit/lsrabuild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1627,6 +1627,12 @@ void LinearScan::buildRefPositionsForNode(GenTree* tree, BasicBlock* block, Lsra
{
minRegCount++;
}
#if FEATURE_PARTIAL_SIMD_CALLEE_SAVE
else if (newRefPosition->refType == RefTypeUpperVectorSave)
{
minRegCount++;
}
#endif
if (newRefPosition->getInterval()->isSpecialPutArg)
{
minRegCount++;
Expand Down

0 comments on commit 516956a

Please sign in to comment.