summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Baladurin <k.baladurin@samsung.com>2019-09-13 20:28:08 +0300
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>2019-09-16 08:26:30 +0900
commit5abe6914ff47b03ca4f4001f88142f3b9786c6f7 (patch)
tree604ac23500114c67dcb8b896d9cfe13d7e9a0cd2
parent26baf194cfe91858f2a1b7a5438a910555a8e35a (diff)
downloadcoreclr-submit/tizen/20190915.232949.tar.gz
coreclr-submit/tizen/20190915.232949.tar.bz2
coreclr-submit/tizen/20190915.232949.zip
[JIT/x86] Fix LinearScan::allocateRegisters (#26649)submit/tizen/20190915.232949accepted/tizen/unified/20190916.043453
Check for `lvLRACandidate` instead of `!lvDoNotEnregister` when checking whether `this` may be enregistered and has an Interval.
-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 f86ee64ff0..008a3d02f5 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)