cmd/compile: suboptimal compilation of reflect.isZero #64222
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
cd reflect
go test -c
go tool objdump reflect.test.exe
What did you expect to see?
I want reflect.isZero to use SIMD when GOAMD64 is greater than v1.
Avoid For all zeros, performance is not as good as return bytealg.Count(b, byte(0)) == len(b).
What did you see instead?
I see that reflect.isZero uses CMPQ when GOAMD64 is greater than v1.
The text was updated successfully, but these errors were encountered: