diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2019-03-13 14:36:34 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2019-03-14 00:03:38 +0000 |
| commit | 66f5d4e03500bf5085d10eb5ffd89bf33b7d2b9f (patch) | |
| tree | 131a2f21aac3351877dc18ce012c3b14d8685bc3 /src/errors | |
| parent | 61945fc5022e36ae88758f2c4e8f7c29f0824ae0 (diff) | |
| download | go-66f5d4e03500bf5085d10eb5ffd89bf33b7d2b9f.tar.xz | |
cmd/compile: int64(uint64 >> x) >= 0 if x > 0
This rewrite rule triggers only once, in math/big.quotToFloat64,
as part of converting a uint64 to a float64.
Nevertheless, it is cheap; let's add it.
Change-Id: I3ed4a197a559110fec1bc04b3a8abb4c7fcc2c89
Reviewed-on: https://go-review.googlesource.com/c/go/+/167500
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/errors')
0 files changed, 0 insertions, 0 deletions
