Skip to content

Commit

Permalink
Keep values of "lvaEnreg" switches up-to-date (#77502)
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion authored Oct 27, 2022
1 parent 0725430 commit 65233eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/coreclr/jit/compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3861,6 +3861,9 @@ void Compiler::compSetOptimizationLevel()
{
opts.compFlags &= ~CLFLG_MAXOPT;
opts.compFlags |= CLFLG_MINOPT;

lvaEnregEHVars &= compEnregLocals();
lvaEnregMultiRegVars &= compEnregLocals();
}

if (!compIsForInlining())
Expand Down

0 comments on commit 65233eb

Please sign in to comment.