]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: make LR allocatable in non-leaf functions on ARM
authorCherry Zhang <cherryyz@google.com>
Wed, 26 Oct 2016 19:44:19 +0000 (15:44 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 28 Oct 2016 14:25:33 +0000 (14:25 +0000)
commitf9238a76ff0082071527ce8ec94542a297f594f8
tree5aeb10ff66bcf17fa795a13e6f16c25c063f51dc
parent4f1ca8b6f92d69a889a6884d3b8393fdcf530e2b
cmd/compile: make LR allocatable in non-leaf functions on ARM

The mechanism is initially introduced (and reviewed) in CL 30597
on S390X.

Reduce number of "spilled value remains" by 0.4% in cmd/go.

Disabled on ARMv5 because LR is clobbered almost everywhere with
inserted softfloat calls.

Change-Id: I2934737ce2455909647ed2118fe2bd6f0aa5ac52
Reviewed-on: https://go-review.googlesource.com/32178
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/gen/ARMOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/regalloc.go