Skip to content

Commit

Permalink
JIT: Follow related intervals for single-reg LIR temp intervals (#86632)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch authored May 24, 2023
1 parent 6594dfc commit c368b3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/coreclr/jit/lsra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12278,8 +12278,7 @@ regMaskTP LinearScan::RegisterSelection::select(Interval* currentInterval,
//
bool thisIsSingleReg = isSingleRegister(newRelatedPreferences);
if (!thisIsSingleReg ||
(finalRelatedInterval->isLocalVar &&
linearScan->isFree(linearScan->getRegisterRecord(genRegNumFromMask(newRelatedPreferences)))))
linearScan->isFree(linearScan->getRegisterRecord(genRegNumFromMask(newRelatedPreferences))))
{
relatedPreferences = newRelatedPreferences;
// If this Interval has a downstream def without a single-register preference, continue to iterate.
Expand Down

0 comments on commit c368b3d

Please sign in to comment.