diff options
| author | Alexandru Moșoi <brtzsnr@gmail.com> | 2016-03-24 08:48:41 +0100 |
|---|---|---|
| committer | Alexandru Moșoi <alexandru@mosoi.ro> | 2016-03-24 19:38:21 +0000 |
| commit | d8ee180ab2722e92c568e322fbc8690688f992e3 (patch) | |
| tree | 0b757dd22622ab078546c5baef702e9828e74a46 /src/encoding | |
| parent | df2b2eb63db3f771c41be4d97ac6fb6b0c5f8c48 (diff) | |
| download | go-d8ee180ab2722e92c568e322fbc8690688f992e3.tar.xz | |
cmd/compile: fold more of CMPQ and ANDQ
g used to produce CMPQ/SBBQ/ANDQ, but f didn't even though
s&15 is at most s&63.
func f(x uint64, s uint) uint64 {
return x >> (s & 63)
}
func g(x uint64, s uint) uint64 {
return x >> (s & 15)
}
Change-Id: Iab4a1a6e10b471dead9f1203e9d894677cf07bb2
Reviewed-on: https://go-review.googlesource.com/21048
Run-TryBot: Alexandru Moșoi <alexandru@mosoi.ro>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
