summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Baladurin <k.baladurin@samsung.com>2019-09-13 17:28:08 (GMT)
committerGleb Balykov <g.balykov@samsung.com>2020-03-25 12:29:41 (GMT)
commit23cdca9f2be22904d196f69f0d64a1278cb73b44 (patch)
treecf8f0108af5f32b78191457fcd4267e30c96a62a /src
parent11f58cb707092055ad8519723b45b72def099300 (diff)
downloadcoreclr-23cdca9f2be22904d196f69f0d64a1278cb73b44.zip
coreclr-23cdca9f2be22904d196f69f0d64a1278cb73b44.tar.gz
coreclr-23cdca9f2be22904d196f69f0d64a1278cb73b44.tar.bz2
[JIT/x86] Fix LinearScan::allocateRegisters (#26649)
Check for `lvLRACandidate` instead of `!lvDoNotEnregister` when checking whether `this` may be enregistered and has an Interval.
Diffstat (limited to 'src')
-rw-r--r--src/jit/lsra.cpp2
1 files changed, 1 insertions, 1 deletions
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)