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: fold offsets into memory ops #23325
generates the assembly:
We should fold the LEAQ into the SETLT. We do so in many other cases, the SETXX cases were missed. We should audit to make sure that all ops for which we can fold address computations into, we do so.
Need to do (for amd64):
For each, fold an LEAQ or an ADDQ in the pointer slot into the instruction itself. Example: