go/src/cmd
Michael Anthony Knyszek 830ee4792e cmd/compile: declare runtime bit func aliases after math/bits intrinsics
Currently runtime/internal/sys bit-manipulation functions are aliased to
math/bits functions, which are intrinsified. Unfortunately these aliases
are declared before the intrinsified versions are generated, resulting
in the generic version of the code being copied over.

This change moves the aliases for bit operations in runtime/internal/sys
after the addF calls to generate those intrinsics in SSA, so that the
intrinsified SSA representation of those functions actually get copied
over.

This should improve the overall performance of the runtime (especially
the page allocator) since these bit operations will actually be
intrinsified now.

Change-Id: I4377da13f9a7bb6aee608e50df0297148bf8f806
Reviewed-on: https://go-review.googlesource.com/c/go/+/224437
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
2020-03-23 15:52:57 +00:00
..
addr2line
api
asm cmd/internal/obj/riscv: add NEG/NEGW pseudo-instructions 2020-03-15 08:15:09 +00:00
buildid
cgo cmd/cgo: always produce a parameter name for C code 2020-03-10 04:53:34 +00:00
compile cmd/compile: declare runtime bit func aliases after math/bits intrinsics 2020-03-23 15:52:57 +00:00
cover cmd/cover: skip function declarations with blank names 2020-03-13 14:29:27 +00:00
dist Revert "misc/spectre: add spectre index test" 2020-03-13 21:31:16 +00:00
doc cmd/doc: fix merging comments in -src mode 2020-03-05 03:55:11 +00:00
fix cmd/fix: eliminate data races in TestRewrite and gofmt 2019-11-18 15:11:03 +00:00
go cmd/go: fix function name in comment 2020-03-22 01:21:05 +00:00
gofmt cmd/gofmt, go/format: sync internal.go 2020-02-28 14:23:08 +00:00
internal cmd/internal/moddeps: skip GOROOT/pkg when locating modules 2020-03-18 18:12:40 +00:00
link cmd/link: fix for package name attr testpoint in dwarf_test.go 2020-03-10 19:41:44 +00:00
nm all: base64-encode binaries that will cause Apple notarization to fail 2019-11-21 14:55:12 +00:00
objdump cmd/objdump: guard against out-of-range lines from directives. 2020-03-12 20:40:54 +00:00
pack
pprof all: fix a number of misuses of the word "an" 2019-12-10 16:23:10 +00:00
test2json
trace cmd/trace: update to use WebComponents V0 polyfill 2020-02-20 19:12:11 +00:00
vendor cmd/vet: add ifaceassert and stringintconv checks 2020-03-10 00:47:00 +00:00
vet cmd/vet: add ifaceassert and stringintconv checks 2020-03-10 00:47:00 +00:00
README.vendor
go.mod cmd/vet: add ifaceassert and stringintconv checks 2020-03-10 00:47:00 +00:00
go.sum cmd/vet: add ifaceassert and stringintconv checks 2020-03-10 00:47:00 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.