-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the codegen of the vector accelerated
System.Numerics.*
typ…
…es (#81335) * Allow Quaternion and Plane to be imported as TYP_SIMD16 * Add some minimal intrinsification of Quaternion and Plane * Ensure Vector indexers are marked readonly * Ensure the vector constant properties are intrinsic * Ensure that the vector GetElement and WithElement APIs are intrinsic * Ensure vector division by scalar is intrinsic * Minor cleanup to vector files * Ensure vector arithmetic functions are consistently intrinsic * Ensure creating a plane from a vector4 is intrinsic * Ensure accessing the Normal field of a Plane is efficient * Ensure Quaternion and Plane return the correct SimdAsHWIntrinsicClassId * Specially optimize Create(Dot(..., ...)) and Create(Sqrt(Dot(..., ...))) * Ensure vector clamp is intrinsic * Ensure vector lerp is intrinsic * Ensure vector length is intrinsic * Ensure vector normalize is intrinsic * Ensure vector distance is intrinsic * Optimize the vector transform by matrix methods * Ensure quaternion conjugate and inverse are intrinsic * Fixing assert, formatting, and build failure * Ensure Quaternion.Inverse uses LengthSquared not Length * Ensure Create APIs are correctly imported as intrinsic * Ensure we don't assert for AltJit * Ensure lowering DotProd doesn't break CSE for scalar vs vector results * Minimally fixup Mono for the new intrinsics * Ensure SN_GetElement doesn't raise an assert * Ensure get_UnitW is ordered correctly for Mono * Try to fix SN_GetElement * Fix SN_WithElement for Mono * Resolving mono formatting feedback
- Loading branch information
1 parent
4354abd
commit 90401dd
Showing
25 changed files
with
1,686 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.