diff options
author | Konstantin Baladurin <k.baladurin@samsung.com> | 2019-09-13 20:28:08 +0300 |
---|---|---|
committer | Konstantin Baladurin <k.baladurin@samsung.com> | 2019-09-26 00:24:34 +0300 |
commit | e3eaa725039a8a7462bbdab4a53aaa33f3ed1730 (patch) | |
tree | cb7e7af5f263d8c1e4d4bdbffe91a8f9ebf62d32 | |
parent | b3794acc0356e3b5d0ff5b59f590a9a7eac11da0 (diff) | |
download | coreclr-e3eaa725039a8a7462bbdab4a53aaa33f3ed1730.tar.gz coreclr-e3eaa725039a8a7462bbdab4a53aaa33f3ed1730.tar.bz2 coreclr-e3eaa725039a8a7462bbdab4a53aaa33f3ed1730.zip |
[JIT/x86] Fix LinearScan::allocateRegisters (#26649)
Check for `lvLRACandidate` instead of `!lvDoNotEnregister` when checking whether `this` may be enregistered and has an Interval.
-rw-r--r-- | src/jit/lsra.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/lsra.cpp b/src/jit/lsra.cpp index 5002fdd66e..8f9bdd1ff8 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) |