mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-06 13:37:36 +03:00
runtime,internal/bytealg: optimize wasmZero, wasmMove, Compare
Coalesce set/get pairs into a tee. Change-Id: I88ccdcb148465615437bebf24145e941a037e0a5 Reviewed-on: https://go-review.googlesource.com/c/go/+/200357 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Richard Musiol <neelance@gmail.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
8fe5a637fb
commit
effdebcc99
1 changed files with 1 additions and 2 deletions
|
@ -45,9 +45,8 @@ TEXT cmpbody<>(SB), NOSPLIT, $0-0
|
|||
I32WrapI64
|
||||
Call memcmp<>(SB)
|
||||
I64ExtendI32S
|
||||
Set R5
|
||||
Tee R5
|
||||
|
||||
Get R5
|
||||
I64Eqz
|
||||
If
|
||||
// check length
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue