From 71e13c297dcd09cac53a41adb29e6965db473678 Mon Sep 17 00:00:00 2001 From: Sergey Andreenko Date: Tue, 15 Jun 2021 14:11:12 -0700 Subject: [PATCH] lvDoNotEnregister is not set when we are calling this function. (#54199) --- src/coreclr/jit/copyprop.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/coreclr/jit/copyprop.cpp b/src/coreclr/jit/copyprop.cpp index 9ede20c6..c0d7212 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) -- 2.7.4