-
Notifications
You must be signed in to change notification settings - Fork 18.6k
runtime: optimize zeroing of registers in secret_amd64.s #76830
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
base: master
Are you sure you want to change the base?
Conversation
Use VPXORQ instead of VMOVAPD because the former, when in the form of a zeroing idiom, is handled directly by the renamer. Tweak also the KXORQs to operate each on a single register, making it trivial to understand what the intent is, and so that all can potentially execute in parallel.
|
This PR (HEAD: 2e02768) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/729940. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/729940. |
|
Message from Jorropo: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/729940. |
|
Message from Carlo Alberto Ferraris: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/729940. |
|
Message from Carlo Alberto Ferraris: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/729940. |
|
Message from Daniel Morsing: Patch Set 2: Code-Review+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/729940. |
|
Message from Jorropo: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/729940. |
Use VPXORQ instead of VMOVAPD because the former, when in the form of a zeroing idiom, is handled directly by the renamer.
Tweak also the KXORQs to operate each on a single register, making it trivial to understand what the intent is, and so that all can potentially execute in parallel.