Guard SseImpl method body with IsSupported check (#39246)
authorAndy Ayers <andya@microsoft.com>
Fri, 17 Jul 2020 23:18:52 +0000 (16:18 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 23:18:52 +0000 (16:18 -0700)
commitcc6d54c3160b757a1be58619abf2dd75380e5107
treeda1742cbf902393cb54ea22c86e9643e3668357c
parente0913bd003eaa3fef6ef11c5d1380ca5005b1253
Guard SseImpl method body with IsSupported check (#39246)

Though this method is only ever callable by code that's already done the right
IsSupported check, add a redundant check to the method itself, so that when
crossgenning SPC on non-xarch platforms we won't try and compile the xarch
specific parts of this method.  This should save some time and a bit of file
size for non-xarch SPCs.

See notes on #38894 for context.
src/libraries/System.Private.CoreLib/src/System/Numerics/Matrix4x4.cs