Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: improve PPC64.rules for loads and stores as found in encoding/binary ByteOrder interface functions #22496
Use PPC64.rules to improve performance of statements that do multiple single byte loads or stores on consecutive bytes, such as is found in the encoding/binary ByteOrder interface. Instead do a single multi-byte load or store where possible, such as lhz, lwz, ld, sth, stw, std.
This improves functions that are found in encoding/binary:
The initial change for this will handle little endian cases.