diff --git a/src/coreclr/jit/copyprop.cpp b/src/coreclr/jit/copyprop.cpp index 9ede20c61b07ba..c0d72123e1a11d 100644 --- a/src/coreclr/jit/copyprop.cpp +++ b/src/coreclr/jit/copyprop.cpp @@ -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)