-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Treat System.Runtime.CompilerServices.Unsafe as intrinsic #68739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b30794d
Treat System.Runtime.CompilerServices.Unsafe as intrinsic
tannergooding a9bc307
Remove duplicated logic from Get_CORINFO_SIG_INFO
tannergooding 3e3c839
Don't create a multiply node if the size is 1
tannergooding 9e84bdd
Remove unnecessary impBashVarAddrsToI calls over gtNewIconNode
tannergooding 4d42990
Use `#ifdef TARGET_64BIT` rather than `#if (REGSIZE_BYTES == 8)`
tannergooding 201217e
Don't unnecessarily call `genActualType(TYP_U_IMPL)`, just use `TYP_I…
tannergooding 1bf3f3a
Only insert casts for `TYP_INT` to `TYP_I_IMPL` or `TYP_U_IMPL` on 64…
tannergooding 6963037
Have Unsafe.SkipInit create a `GT_NO_OP` node
tannergooding 2301adc
Have Unsafe.Subtract and Unsafe.SubtractByteOffset be intrinsic
tannergooding 3c4f660
Adding a couple `CLANG_FORMAT_COMMENT_ANCHOR;` to comments that prece…
tannergooding 4d91472
Applying formatting patch
tannergooding 982660e
Revert "Have Unsafe.Subtract and Unsafe.SubtractByteOffset be intrinsic"
tannergooding a933fec
Fixing the operand evaluation order for NI_SRCS_UNSAFE_Add
tannergooding fff8ddc
Fixing the operand evaluation order for NI_SRCS_UNSAFE_ByteOffset
tannergooding 7166b2e
Implement NI_SRCS_UNSAFE_SubtractByteOffset
tannergooding 4e3303a
Fix the build failure
tannergooding 66de257
Ensure impImplicitIorI4Cast is called on op2 for NI_SRCS_UNSAFE_Add
tannergooding e491b78
Don't declare a `tmp` in NI_SRCS_UNSAFE_Add to make the logic clearer
tannergooding b3e6e3c
Have NI_SRCS_UNSAFE_SkipInit return gtNewNothingNode
tannergooding 0b372a5
Handle side effects for NI_SRCS_UNSAFE_SkipInit
tannergooding 3e2a2ae
Revert "Implement NI_SRCS_UNSAFE_SubtractByteOffset"
tannergooding ab91385
Manually simplify some of the NI_SRCS_* import logic
tannergooding f8dd74d
Ensure NI_SRCS_SkipInit returns the unused node when its side-effecting
tannergooding 77b9af1
Remove unnecessary comment anchors
tannergooding d7b4783
Applying formatting patch
tannergooding 0c07847
Try to workaround the JIT issue by spilling op1/op2 for Unsafe.Add
tannergooding 272bce2
Apply formatting patch
tannergooding 8c964f1
Merge remote-tracking branch 'dotnet/main' into unsafe-intrinsics
tannergooding 79c717b
Revert "Try to workaround the JIT issue by spilling op1/op2 for Unsaf…
tannergooding e573dd8
Have Unsafe.Subtract and Unsafe.SubtractByteOffset be intrinsic
tannergooding File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Manually simplify some of the NI_SRCS_* import logic
- Loading branch information
commit ab91385ad04264649461109a6c64e8aa5f16ef12
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.