cmd/compile: unsafe conversion from slice to struct pointer generates worse code on amd64 than on 386 #65330
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FeatureRequest
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Performance
Milestone
Go version
go version devel go1.22-b7c630dc3a Tue Jan 9 01:36:54 2024 +0000 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Compile
What did you see happen?
When compiling for GOARCH=386, the function body compiles to
but when compiling for GOARCH=amd64, it compiles to
Where the first 4 instructions are unnecessary.
The text was updated successfully, but these errors were encountered: