Skip to content

Commit

Permalink
lvDoNotEnregister is not set when we are calling this function. (#54199)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Andreenko committed Jun 15, 2021
1 parent 337216a commit 71e13c2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/coreclr/jit/copyprop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,6 @@ int Compiler::optCopyProp_LclVarScore(LclVarDsc* lclVarDsc, LclVarDsc* copyVarDs
score -= 4;
}

if (lclVarDsc->lvDoNotEnregister)
{
score += 4;
}

if (copyVarDsc->lvDoNotEnregister)
{
score -= 4;
}

#ifdef TARGET_X86
// For doubles we also prefer to change parameters into non-parameter local variables
if (lclVarDsc->lvType == TYP_DOUBLE)
Expand Down

0 comments on commit 71e13c2

Please sign in to comment.