[Arm64] Fix genCodeForCpObj()
authorSteve MacLean, Qualcomm Datacenter Technologies, Inc <sdmaclea@qti.qualcomm.com>
Wed, 22 Feb 2017 22:11:45 +0000 (22:11 +0000)
committerSteve MacLean, Qualcomm Datacenter Technologies, Inc <sdmaclea@qti.qualcomm.com>
Thu, 23 Feb 2017 02:52:01 +0000 (02:52 +0000)
commit7a98ba2eb45f37f6c05623c183282dd02f532329
treeed136941ea78fcef7e221342593e894c74f73ac4
parentf52fa07e39b004793ebc75899579e4d51f2fa291
[Arm64] Fix genCodeForCpObj()

CORINFO_HELP_ASSIGN_BYREF is the functional equivalent to

   *dst = *src;
   ++dst;
   ++src;

Note: Description ignores barriers.

Since src and dst are incremented the registers are marked dead.

In genCodeForCpObj(), the incremented values are will be reused
and therefore must be treated as live.  Add code to explicitly
force them live for this use case.

Commit migrated from https://github.com/dotnet/coreclr/commit/a5d464837248bae64845fb3e8207821d29f316d8
src/coreclr/src/jit/codegenarm64.cpp