cmd/compile: store combining doesn't combine all possible stores #60709
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
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, also in 1.17 (so it is not a regression)
What operating system and processor architecture are you using (
go env
)?The same bug was observed compiling for riscv64, arm64, and amd64
What did you do?
I compiled
with
GOOS=linux goarch=arm64 go build -gcflags=-S fb.go
What did you expect to see?
A single load-word (32 bits) instruction and a single store-word instruction.
What did you see instead?
Across those 3 architectures:
followed by stores in memory order. For example:
The text was updated successfully, but these errors were encountered: