summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2016-09-09 11:04:19 -0700
committerPat Gavlin <pagavlin@microsoft.com>2016-09-09 11:04:19 -0700
commit0224d864af72cc2fa414bf7daedeb6d559cb1140 (patch)
treed5ad7eb465096cbde3e0d677240674e627a2af76
parent4033fe5af8469d3e0c81d99cd2fa842c5baea57c (diff)
downloadcoreclr-0224d864af72cc2fa414bf7daedeb6d559cb1140.tar.gz
coreclr-0224d864af72cc2fa414bf7daedeb6d559cb1140.tar.bz2
coreclr-0224d864af72cc2fa414bf7daedeb6d559cb1140.zip
Model the kill set for ASSIGN_BYREF on x86.
This helper kills esi, edi, and ecx.
-rwxr-xr-xsrc/jit/codegencommon.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jit/codegencommon.cpp b/src/jit/codegencommon.cpp
index 2710447ade..56ab2e706b 100755
--- a/src/jit/codegencommon.cpp
+++ b/src/jit/codegencommon.cpp
@@ -646,6 +646,8 @@ regMaskTP Compiler::compHelperCallKillSet(CorInfoHelpFunc helper)
return RBM_RSI | RBM_RDI | RBM_CALLEE_TRASH;
#elif defined(_TARGET_ARM64_)
return RBM_CALLEE_TRASH_NOGC;
+#elif defined(_TARGET_X86_)
+ return RBM_ESI | RBM_EDI | RBM_ECX;
#else
NYI("Model kill set for CORINFO_HELP_ASSIGN_BYREF on target arch");
return RBM_CALLEE_TRASH;