These detect opportunities to convert a rule to use an ellipsis, and provide better error messages when something goes wrong. This change was used to generate all the preceding changes converting rules to use ellipses. This change is at the end of those changes rather than the beginning in order to avoid log spam during rule generation (say during a git bisection). The preceding changes collectively shrink the cmd/compile binary by ~2.2%. Part of this detection is also warning when the presence of an unmentioned aux or auxint could cause conversion to an ellipsis rule to change the sematics of the rule. For example: (Div64 x y) -> (DIV x y) looks like a promising rule for an ellipsis. However, Div64 has an auxint, and (on most platforms) DIV does not. An ellipsis rule would keep the auxint intact, rather than zeroing it, which can infere with CSE. So this change flags this rule as doing implicit zeroing; it should be replaced by (Div64 [a] x y) -> (DIV x y) which makes it clear that the auxint is being zeroed. This detection is not foolproof, but it currently has no false positives. If false positives arise in the future, we will need to gate the output. Change-Id: Ie21f284579e5d6e75aa304d0deb024d41ede528b Reviewed-on: https://go-review.googlesource.com/c/go/+/217014 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc> |
||
|---|---|---|
| .github | ||
| api | ||
| doc | ||
| lib/time | ||
| misc | ||
| src | ||
| test | ||
| .gitattributes | ||
| .gitignore | ||
| AUTHORS | ||
| CONTRIBUTING.md | ||
| CONTRIBUTORS | ||
| LICENSE | ||
| PATENTS | ||
| README.md | ||
| SECURITY.md | ||
| favicon.ico | ||
| robots.txt | ||
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://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
Install From Source
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Contributing
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.