]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: improve arm64 wrapper prologue
authorph <phofer@umich.edu>
Tue, 8 Aug 2017 23:05:17 +0000 (23:05 +0000)
committerCherry Zhang <cherryyz@google.com>
Tue, 15 Aug 2017 14:01:54 +0000 (14:01 +0000)
commit4282ba0a6571abca6878d91711aee50fefc2c69b
treed0ffd389d2984329c47603eb25f0f1369cf88046
parente6cbf98d696c0b8e800951698de1d30d15cae03f
cmd/internal/obj/arm64: improve arm64 wrapper prologue

Improve static branch prediction in arm64 wrapper prologue
by making the unusual case branch forwards. (Most other
architectures implement this optimization.)

Additionally, replace a CMP+BNE pair with a CBNZ
to save one instruction.

Change-Id: Id970038b34b4aaec18c101d62e2ee00f3e32a761
Reviewed-on: https://go-review.googlesource.com/54070
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/arm64/obj7.go