cmd/compile: merge sequential memory moves into bigger memory moves #25866
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
The issue
Go tip compiles the following code into the following assembly:
The assembly copies sequential stack arguments from
fff
toIndexByte
using the following instructions:These instructions may be substituted by shorter (and, probably, faster) assembly:
Solution
Add the corresponding arch-specific rewrite rules for merging sequential memory moves into bigger memory moves
cc'ing @randall77 and @TocarIP .
The text was updated successfully, but these errors were encountered: