Copy lvExactSize to shadowVar
authorMichelle McDaniel <adiaaida@gmail.com>
Wed, 11 Jan 2017 20:48:55 +0000 (12:48 -0800)
committerMichelle McDaniel <adiaaida@gmail.com>
Wed, 11 Jan 2017 20:48:55 +0000 (12:48 -0800)
For TYP_SIMD12 vars, we need to copy the lvExactSize to the shadowVar
so that we have the right size in lower.

Fixes dotnet/coreclr#8550.

Commit migrated from https://github.com/dotnet/coreclr/commit/c5164321762be137643b3152c5b1a6800df595f6

src/coreclr/src/jit/gschecks.cpp

index 9255d8f..c3522b8 100644 (file)
@@ -406,6 +406,7 @@ void Compiler::gsParamsToShadows()
 
 #ifdef FEATURE_SIMD
         lvaTable[shadowVar].lvSIMDType            = varDsc->lvSIMDType;
+        lvaTable[shadowVar].lvExactSize           = varDsc->lvExactSize;
         lvaTable[shadowVar].lvUsedInSIMDIntrinsic = varDsc->lvUsedInSIMDIntrinsic;
         if (varDsc->lvSIMDType)
         {