Fix System.Numerics.Vectors CoreFx test failures
authorCarol Eidt <carol.eidt@microsoft.com>
Fri, 10 Feb 2017 18:34:09 +0000 (10:34 -0800)
committerCarol Eidt <carol.eidt@microsoft.com>
Fri, 10 Feb 2017 18:43:52 +0000 (10:43 -0800)
commit7ba06433d5fe34bace2a67c82b84a5b4e5598576
treed57e6e7aa162e9f45aad58afe6d551a1d3bf9e1b
parent4faa5495aaa07542c8713b0e6bed88e636c7f42b
Fix System.Numerics.Vectors CoreFx test failures

CoreFx Issue 15713 is due to a case of an Indir(Addr(Field(Vector3 local))) which for some reason has a MorphAddrContext of MACK_Ind. Although I haven't fully identified why that is the case, we should be conservative in this case and mark the address as do-not-enregister.
In addition, when attempting to debug this with a Checked JIT, I encountered an AV due to `GetJitTls` returning null in the `JITDUMP` calls in `getMaxIntrinsicSIMDVectorLength`. Again, I'm not sure why this would be the case but I have added guarding conditions.

Commit migrated from https://github.com/dotnet/coreclr/commit/91be288f0d63c801f3aa6cbf9abd9ed852b0666f
src/coreclr/src/jit/ee_il_dll.cpp
src/coreclr/src/jit/morph.cpp