diff options
| author | Agniva De Sarker <agnivade@yahoo.co.in> | 2019-09-08 22:55:01 +0530 |
|---|---|---|
| committer | Agniva De Sarker <agniva.quicksilver@gmail.com> | 2019-09-10 09:12:32 +0000 |
| commit | b38be35e4c79fd3c5b9450e95cf092eaac094405 (patch) | |
| tree | 2f4de3c863fda4ed4d2bb24a27b2f85c5f7cea91 /src/encoding/json | |
| parent | b6ec56bc26a89e9733390dd41fade5baace5a641 (diff) | |
| download | go-b38be35e4c79fd3c5b9450e95cf092eaac094405.tar.xz | |
cmd/compile: optimize const rotates for wasm architecture
This removes the unnecessary code to check whether the shift
is within limits or not when the shift amount is a constant.
The rules hit 23034 times when building std cmd.
grep -E "Wasm.rules:(106|107|121|122|139|140)" rulelog | wc -l
23034
Reduces the size of pkg/js_wasm by 132 bytes.
Change-Id: I64a2b8faca08c3b5039d6a027d4676130d2db18d
Reviewed-on: https://go-review.googlesource.com/c/go/+/194239
Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Richard Musiol <neelance@gmail.com>
Diffstat (limited to 'src/encoding/json')
0 files changed, 0 insertions, 0 deletions
