Do not report FP restores in x86 epilogs.
authorPat Gavlin <pagavlin@microsoft.com>
Wed, 22 Feb 2017 19:05:25 +0000 (11:05 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Thu, 23 Feb 2017 01:35:37 +0000 (17:35 -0800)
commit62e05a0d18968704c6b0a48b584305a8f747cdcf
treebc95f75134534bafbd71f15ce7e4f7420d592363
parent3d5fc2642d72a5c826de7591dd6aceb5e88dd433
Do not report FP restores in x86 epilogs.

The x86 unwinder neither needs nor expects to see these restores (which
right now consist solely of a `vzeroupper` instruction that is emitted
to eliminate AVX <-> SSE transition penalties), which was causing unwind
failures under GC stress. This change stops reporting these restores as
part of a function epilog.

Fixes dotnet/coreclr#9452.

Commit migrated from https://github.com/dotnet/coreclr/commit/ce70f4c2acae22fd8eaee1588c3f54596e521c8a
src/coreclr/src/jit/codegencommon.cpp
src/coreclr/src/jit/emit.cpp
src/coreclr/src/jit/emit.h
src/coreclr/src/jit/emitxarch.cpp