-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Allow constant propagation of Vector.Zero. #65028
Merged
Merged
Conversation
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
jakobbotsch
reviewed
Feb 14, 2022
jakobbotsch
reviewed
Feb 14, 2022
jakobbotsch
reviewed
Feb 14, 2022
jakobbotsch
reviewed
Feb 14, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a few nits.
jakobbotsch
approved these changes
Feb 15, 2022
4 tasks
Here are some notable x64 diffs: G_M3641_IG06: ; gcrefRegs=00000008 {rbx}, byrefRegs=00000000 {}, byref
vxorps xmm6, xmm6, xmm6
vxorps xmm7, xmm7, xmm7
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
call hackishModuleName:hackishMethodName()
; gcr arg pop 0
call hackishModuleName:hackishMethodName()
@@ -443,8 +430,6 @@ G_M3641_IG06: ; gcrefRegs=00000008 {rbx}, byrefRegs=00000000 {}, byref
; gcrRegs +[rax]
; gcr arg pop 0
vmovupd xmmword ptr [rax+8], xmm6
-G_M3641_IG08: ; gcrefRegs=00000000 {}, byrefRegs=00000000 {}, byref, isz
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- vxorps xmm0, xmm0, xmm0
- jmp SHORT G_M3641_IG10
- ;; bbWeight=0.50 PerfScore 2.17
-G_M3641_IG09: ; gcrefRegs=00000000 {}, byrefRegs=00000000 {}, byref
+ je SHORT G_M3641_IG09
+ ;; bbWeight=1 PerfScore 4.00
+G_M3641_IG08: ; gcrefRegs=00000000 {}, byrefRegs=00000000 {}, byref
mov esi, -1
;; bbWeight=0.50 PerfScore 0.12
-G_M3641_IG10: ; gcrefRegs=00000000 {}, byrefRegs=00000000 {}, byref
+G_M3641_IG09: ; gcrefRegs=00000000 {}, byrefRegs=00000000 {}, byref
mov eax, esi call CORINFO_HELP_ASSIGN_REF
; gcrRegs -[rdx rdi]
; byrRegs -[rcx]
- vxorps ymm0, ymm0, ymm0
vmovupd ymm6, ymmword ptr[reloc @RWD32]
- vxorps ymm0, ymm0, ymm0
mov rcx, 0xD1FFAB1E
vextractf128 xmm7, ymm6, 1
call CORINFO_HELP_NEWSFAST
@@ -518,10 +516,10 @@ G_M50494_IG03: ; , extend
vmovupd ymm0, ymmword ptr[reloc @RWD352]
vmovupd ymm1, ymmword ptr[reloc @RWD384]
vmovupd ymm2, ymmword ptr[reloc @RWD416] |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
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.
We need to merge #63821 first.
I did this work to gain some understanding of how value numbering and constant propagation work in the JIT.
Description
Example code:
turns into:
ARM64 diffs
Here are some notable x64 diffs:
Acceptance Criteria
Vector.Create(0)
toVector.Zero
#63821