Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
lvDoNotEnregister is not set when we are calling this function.
  • Loading branch information
Sergey committed Jun 15, 2021
commit 42affccbcd96bcd68d2939646dde2cd1acd9199c
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