[x86] Make copies of odd-size structs
authorCarol Eidt <carol.eidt@microsoft.com>
Fri, 4 Jan 2019 22:32:34 +0000 (14:32 -0800)
committerCarol Eidt <carol.eidt@microsoft.com>
Fri, 4 Jan 2019 23:21:23 +0000 (15:21 -0800)
commit1b8e8d5d5d9187306fbce40568e9203b22f7ce65
tree8baf4fabbb52b701e9fff03c2b892fe2c8d17066
parentea1203ab577d77cd951129c426d0e650ad60fda1
[x86] Make copies of odd-size structs

PR dotnet/coreclr#21304 inadvertently disabled this code for x86.
This led to AV failures on desktop, but the same code silently loads
the larger size on coreclr without AV'ing.
Add an assert that we don't see this kind of node in x86 codegen.

Commit migrated from https://github.com/dotnet/coreclr/commit/1ac4b90ffbb741da2d2166cf880415aab6028ec1
src/coreclr/src/jit/codegenxarch.cpp
src/coreclr/src/jit/morph.cpp