cmd/compile: storing strings doesn't take advantage of paired stores on arm64 #72741
Labels
BugReport
Issues describing a possible bug in the Go implementation.
compiler/runtime
Issues related to the Go compiler and/or runtime.
Performance
Milestone
Compiles to:
It would be nice if we wrote the length and ptr together at the end (effectively merging the first and last instructions).
The length and ptr writes get separated because the write barrier pass picks the smallest set of writes to include in the barrier. Which in this case, is just the one pointer write. Maybe we could include one more non-ptr write in the barrier group if we know it could be merged with a pointer write.
The text was updated successfully, but these errors were encountered: