]> Cypherpunks repositories - gostls13.git/commit
cmd/link: optimize PPC64 inline plt sequences if local
authorPaul E. Murphy <murp@ibm.com>
Tue, 14 Jun 2022 21:13:51 +0000 (16:13 -0500)
committerPaul Murphy <murp@ibm.com>
Wed, 5 Oct 2022 14:12:24 +0000 (14:12 +0000)
commitc318f191e45e3496f8afe0a456337e9f76d7f7b4
tree90f2389c3b2a999623baf27dd2632c345c06efd7
parentddc7d2a80cdac50cbbfb9108b443142f44a5ef1d
cmd/link: optimize PPC64 inline plt sequences if local

Indirect branches are much more expensive than direct. If the call is
known to be local, we can replace most of the operations with a nop,
and call directly.

Updates #53345

Change-Id: Icfff9ec1f6c7f8e4181f0f28976033308d2f53eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/412715
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/link/internal/ppc64/asm.go