Descriptioncmd/6g: avoid taking the address of slices unnecessarily.
The main case where it happens is when evaluating &s[i] without
bounds checking, which usually happens during range loops (i=0).
This allows registerization of the corresponding variables,
saving 16 bytes of stack frame for each such range loop and a
LEAQ instruction.
Patch Set 1 #Patch Set 2 : diff -r 79225d9f3ced https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 79225d9f3ced https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 79225d9f3ced https://go.googlecode.com/hg/ #Patch Set 5 : diff -r e4b20018f797 https://go.googlecode.com/hg/ #MessagesTotal messages: 9
|