Skip to content

Commit

Permalink
Fix majority of libraries-jitstressregs
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Feb 17, 2021
1 parent acc22a7 commit 6d1a7c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/coreclr/jit/lsra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10790,7 +10790,7 @@ void LinearScan::verifyFinalAllocation()
{
// Free Registers.
// We could use the freeRegisters() method, but we'd have to carefully manage the active intervals.
for (regNumber reg = REG_FIRST; reg < ACTUAL_REG_COUNT; reg = REG_NEXT(reg))
for (regNumber reg = REG_FIRST; reg < ACTUAL_REG_COUNT && regsToFree != RBM_NONE; reg = REG_NEXT(reg))
{
regMaskTP regMask = genRegMask(reg);
if ((regsToFree & regMask) != RBM_NONE)
Expand Down Expand Up @@ -10926,7 +10926,9 @@ void LinearScan::verifyFinalAllocation()

case RefTypeKill:
assert(regRecord != nullptr);
assert(regRecord->assignedInterval == nullptr);
assert(regRecord->assignedInterval == nullptr ||
(regRecord->assignedInterval->isActive &&
regRecord->assignedInterval->physReg != regRecord->regNum));
dumpLsraAllocationEvent(LSRA_EVENT_KEPT_ALLOCATION, nullptr, regRecord->regNum, currentBlock);
break;
case RefTypeFixedReg:
Expand Down

0 comments on commit 6d1a7c1

Please sign in to comment.