Boolean values fit in registers, mark them accordingly. Improves codegen a bit. compilecmp for darwin/amd64: compress/gzip compress/gzip.(*Reader).Reset 1017 -> 985 (-3.15%) net net.newRequest 1002 -> 970 (-3.19%) crypto/tls crypto/tls.(*sessionState).unmarshal 1054 -> 968 (-8.16%) cmd/compile/internal/syntax cmd/compile/internal/syntax.Fprint 518 -> 453 (-12.55%) cmd/vendor/github.com/ianlancetaylor/demangle cmd/vendor/github.com/ianlancetaylor/demangle.ASTToString 389 -> 325 (-16.45%) cmd/go/internal/load cmd/go/internal/load.PackagesAndErrors 3453 -> 3381 (-2.09%) cmd/compile/internal/ssa cmd/compile/internal/ssa.registerizable 249 -> 255 (+2.41%) cmd/compile/internal/ssagen cmd/compile/internal/ssagen.buildssa 9388 -> 9356 (-0.34%) file before after Δ % compress/gzip.s 8247 8215 -32 -0.388% net.s 266667 266635 -32 -0.012% crypto/tls.s 290324 290238 -86 -0.030% cmd/compile/internal/syntax.s 156422 156357 -65 -0.042% cmd/vendor/github.com/ianlancetaylor/demangle.s 268313 268249 -64 -0.024% cmd/go/internal/load.s 122946 122874 -72 -0.059% cmd/compile/internal/ssa.s 3551201 3551207 +6 +0.000% cmd/compile/internal/ssagen.s 362299 362267 -32 -0.009% total 19725872 19725495 -377 -0.002% Change-Id: I4cd40b54d8b2da6d1f946e51f16689315a369dca Reviewed-on: https://go-review.googlesource.com/c/go/+/408474 Run-TryBot: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Keith Randall <khr@google.com> |
||
|---|---|---|
| .github | ||
| api | ||
| doc | ||
| lib/time | ||
| misc | ||
| src | ||
| test | ||
| .gitattributes | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| PATENTS | ||
| README.md | ||
| SECURITY.md | ||
| codereview.cfg | ||
README.md
The Go Programming Language
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Download and Install
Binary Distributions
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
Install From Source
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Contributing
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.