aboutsummaryrefslogtreecommitdiff
path: root/src/syscall
diff options
context:
space:
mode:
authorMichael Munday <munday@ca.ibm.com>2016-10-06 15:06:45 -0400
committerMichael Munday <munday@ca.ibm.com>2016-10-11 18:52:35 +0000
commit15817e409bce6eeaa7ea2ae158db6ce4618f27f2 (patch)
treed4adf772de90d6201238dabb72fbb111f2532c7f /src/syscall
parent809a1de1ac1ccc76f7a4faf630017626f2f68231 (diff)
downloadgo-15817e409bce6eeaa7ea2ae158db6ce4618f27f2.tar.xz
cmd/compile: make link register allocatable in non-leaf functions
We save and restore the link register in non-leaf functions because it is clobbered by CALLs. It is therefore available for general purpose use. Only enabled on s390x currently. The RC4 benchmarks in particular benefit from the extra register: name old speed new speed delta RC4_128 243MB/s ± 2% 341MB/s ± 2% +40.46% (p=0.008 n=5+5) RC4_1K 267MB/s ± 0% 359MB/s ± 1% +34.32% (p=0.008 n=5+5) RC4_8K 271MB/s ± 0% 362MB/s ± 0% +33.61% (p=0.008 n=5+5) Change-Id: Id23bff95e771da9425353da2f32668b8e34ba09f Reviewed-on: https://go-review.googlesource.com/30597 Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Michael Munday <munday@ca.ibm.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/syscall')
0 files changed, 0 insertions, 0 deletions