cmd/compile: inefficient assembly code on arm64 #43357
Labels
arch-arm64
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?
Compile this code with:
go build -gcflags -S lomuto.go
https://play.golang.org/p/F8fPWbzvDRO
What did you expect to see?
with clang -O3 -S
I see a tight inner loop between LBB0_2 and LBB0_5 with very minimal instructions
What did you see instead?
I see excessive register usage and many more instructions between address 64 and 124
The text was updated successfully, but these errors were encountered: