Skip to content

Commit 7f29c4e

Browse files
committed
Fix bug by using freeCandidates
1 parent 4ae62ed commit 7f29c4e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/coreclr/jit/lsra.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12551,10 +12551,9 @@ void LinearScan::RegisterSelection::resetMinOpts(Interval* interval, RefPosition
1255112551
currentInterval = interval;
1255212552
refPosition = refPos;
1255312553

12554-
regType = linearScan->getRegisterType(currentInterval, refPosition);
12555-
candidates = refPosition->registerAssignment;
12556-
freeCandidates = RBM_NONE;
12557-
found = false;
12554+
regType = linearScan->getRegisterType(currentInterval, refPosition);
12555+
candidates = refPosition->registerAssignment;
12556+
found = false;
1255812557
}
1255912558

1256012559
// ----------------------------------------------------------
@@ -13891,7 +13890,7 @@ regMaskTP LinearScan::RegisterSelection::selectMinOpts(Interval* currentInter
1389113890
return RBM_NONE;
1389213891
}
1389313892

13894-
freeCandidates = linearScan->getFreeCandidates(candidates ARM_ARG(regType));
13893+
candidates = linearScan->getFreeCandidates(candidates ARM_ARG(regType));
1389513894

1389613895
try_REG_ORDER();
1389713896

0 commit comments

Comments
 (0)