go/src/cmd
Junchen Li e30fbe3757 cmd/compile: optimize unsigned comparisons to 0
There are some architecture-independent rules in #21439, since an
unsigned integer >= 0 is always true and < 0 is always false. This CL
adds these optimizations to generic rules.

Updates #21439

Change-Id: Iec7e3040b761ecb1e60908f764815fdd9bc62495
Reviewed-on: https://go-review.googlesource.com/c/go/+/246617
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2020-08-17 20:06:35 +00:00
..
addr2line run.bat: do not unset GOROOT_FINAL before running tests 2020-06-10 03:27:28 +00:00
api
asm [dev.link] cmd/internal/obj: handle content-addressable symbols with relocations 2020-07-20 17:26:32 +00:00
buildid
cgo cmd/cgo: fix mangling of enum and union types 2020-07-31 16:35:33 +00:00
compile cmd/compile: optimize unsigned comparisons to 0 2020-08-17 20:06:35 +00:00
cover all: replace Replace(..., -1) with ReplaceAll(...) 2020-08-17 04:07:23 +00:00
dist cmd/dist: fix typo 2020-08-14 22:59:32 +00:00
doc
fix cmd/cgo,cmd/fix,misc/cgo: map the EGLConfig C type to uintptr in Go 2020-05-31 09:48:08 +00:00
go cmd/go: add tracing for querying and downloading from the proxy 2020-08-17 19:57:12 +00:00
gofmt go/printer: remove exported StdFormat flag 2020-07-17 02:15:01 +00:00
internal cmd/test2json: do not emit a final Action if the result is not known 2020-08-17 19:43:21 +00:00
link cmd/link: emit correct jump instruction on ARM for DYNIMPORT 2020-08-17 14:55:08 +00:00
nm Revert "cmd/internal/goobj: add index to symbol name for indexed symbols" 2020-06-03 19:20:41 +00:00
objdump cmd/dist: do not unset GOROOT_FINAL prior to running tests 2020-06-09 02:49:06 +00:00
pack [dev.link] cmd/pack: use cmd/internal/archive package 2020-08-11 23:11:29 +00:00
pprof
test2json cmd/test2json: do not emit a final Action if the result is not known 2020-08-17 19:43:21 +00:00
trace cmd/trace: move viewer data structs into cmd/internal/traceviewer 2020-08-12 18:34:48 +00:00
vendor cmd/go: migrate to module.MatchPrefixPatterns 2020-08-14 21:04:33 +00:00
vet
README.vendor
go.mod cmd/go: migrate to module.MatchPrefixPatterns 2020-08-14 21:04:33 +00:00
go.sum cmd/go: migrate to module.MatchPrefixPatterns 2020-08-14 21:04:33 +00:00

README.vendor

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