Skip to content

Commit

Permalink
JIT: Skip GT_LCL_FLD stress if GTF_VAR_CONTEXT is set (#105726)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanasifkhalid authored Jul 31, 2024
1 parent 0f05719 commit 8aeff36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/coreclr/jit/lclvars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8078,6 +8078,14 @@ Compiler::fgWalkResult Compiler::lvaStressLclFldCB(GenTree** pTree, fgWalkData*
return WALK_CONTINUE;
}

// Ignore locals used in runtime lookups
if ((tree->gtFlags & GTF_VAR_CONTEXT) != 0)
{
assert(tree->OperIs(GT_LCL_VAR));
varDsc->lvNoLclFldStress = true;
return WALK_CONTINUE;
}

// Ignore arguments and temps
if (varDsc->lvIsParam || lclNum >= pComp->info.compLocalsCount)
{
Expand Down

0 comments on commit 8aeff36

Please sign in to comment.