From: Konstantin Baladurin Date: Fri, 13 Sep 2019 17:28:08 +0000 (+0300) Subject: [JIT/x86] Fix LinearScan::allocateRegisters (#26649) X-Git-Tag: accepted/tizen/unified/20200402.155517~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23cdca9f2be22904d196f69f0d64a1278cb73b44;p=platform%2Fupstream%2Fcoreclr.git [JIT/x86] Fix LinearScan::allocateRegisters (#26649) Check for `lvLRACandidate` instead of `!lvDoNotEnregister` when checking whether `this` may be enregistered and has an Interval. --- diff --git a/src/jit/lsra.cpp b/src/jit/lsra.cpp index 5002fdd..8f9bdd1 100644 --- a/src/jit/lsra.cpp +++ b/src/jit/lsra.cpp @@ -5834,7 +5834,7 @@ void LinearScan::allocateRegisters() if (enregisterLocalVars && compiler->lvaKeepAliveAndReportThis()) { LclVarDsc* thisVarDsc = compiler->lvaGetDesc(compiler->info.compThisArg); - if (!thisVarDsc->lvDoNotEnregister) + if (thisVarDsc->lvLRACandidate) { Interval* interval = getIntervalForLocalVar(thisVarDsc->lvVarIndex); if (interval->isSplit)