From c368b3dcba777bb1437cda25bab6850757ae02f7 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Wed, 24 May 2023 11:31:26 +0200 Subject: [PATCH] JIT: Follow related intervals for single-reg LIR temp intervals (#86632) --- src/coreclr/jit/lsra.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/coreclr/jit/lsra.cpp b/src/coreclr/jit/lsra.cpp index 7156fb65993dd..6a273e3d19b62 100644 --- a/src/coreclr/jit/lsra.cpp +++ b/src/coreclr/jit/lsra.cpp @@ -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.