aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/malloc.go
diff options
context:
space:
mode:
authorJunchen Li <junchen.li@arm.com>2020-07-10 11:39:23 +0800
committerKeith Randall <khr@golang.org>2020-08-17 20:06:35 +0000
commite30fbe3757d09a22988835835c41233df7c6cd00 (patch)
treee53cc3bf90165f2b72d849ba58045f7472d1d80a /src/runtime/malloc.go
parent1a3558341860357c2400e37773e5076bb3a51628 (diff)
downloadgo-e30fbe3757d09a22988835835c41233df7c6cd00.tar.xz
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>
Diffstat (limited to 'src/runtime/malloc.go')
0 files changed, 0 insertions, 0 deletions