diff options
author | Konstantin Baladurin <k.baladurin@samsung.com> | 2019-09-13 20:28:08 +0300 |
---|---|---|
committer | Gleb Balykov <g.balykov@samsung.com> | 2020-03-25 15:29:41 +0300 |
commit | 23cdca9f2be22904d196f69f0d64a1278cb73b44 (patch) | |
tree | cf8f0108af5f32b78191457fcd4267e30c96a62a /src | |
parent | 11f58cb707092055ad8519723b45b72def099300 (diff) | |
download | coreclr-23cdca9f2be22904d196f69f0d64a1278cb73b44.tar.gz coreclr-23cdca9f2be22904d196f69f0d64a1278cb73b44.tar.bz2 coreclr-23cdca9f2be22904d196f69f0d64a1278cb73b44.zip |
[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.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) |