diff options
| author | Alexandru Moșoi <brtzsnr@gmail.com> | 2017-03-23 22:29:59 +0100 |
|---|---|---|
| committer | Alexandru Moșoi <alexandru@mosoi.ro> | 2017-03-24 06:59:33 +0000 |
| commit | 3e63cdf8507709ebfb0906a3dbdc14c402cc0cd6 (patch) | |
| tree | 6733b75140108f4e1b10dd21c7be815b6fc5cb4d /src/net/http/request.go | |
| parent | d039d01fe9786a35ba4f6beea79ff2e964990c97 (diff) | |
| download | go-3e63cdf8507709ebfb0906a3dbdc14c402cc0cd6.tar.xz | |
cmd/compile: optimize shift when counter has different type.
We already handle n << (uint64(c)&63).
This change also handles n << (uint8(c)&63)
where the SSA compiler promotes the counter to 32 bits.
Fixes #19681
Change-Id: I9327d64a994286aa0dbf76eb995578880be6923a
Reviewed-on: https://go-review.googlesource.com/38550
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/net/http/request.go')
0 files changed, 0 insertions, 0 deletions
