diff options
| author | Keith Randall <khr@golang.org> | 2022-04-13 17:33:24 -0700 |
|---|---|---|
| committer | Keith Randall <khr@google.com> | 2022-04-14 15:54:48 +0000 |
| commit | cb702a2a5670d4fa599f573b37b1a01abc9f995a (patch) | |
| tree | 8335066664fba8c50b78e5d8dcd3053d592b3608 /src/cmd/compile/internal/deadcode | |
| parent | d2552037426fe5a190c74172562d897d921fe311 (diff) | |
| download | go-cb702a2a5670d4fa599f573b37b1a01abc9f995a.tar.xz | |
cmd/compile: fold constant shifts into (SHL|SHR|SAR)Xload ops
We should prefer a constant shift op to a X shift op.
That way we don't have to materialize the constant to shift by.
Should fix GOAMD64=v3 builder
Change-Id: I56b45d2940c959382b970e3f962ed4a09cc2a239
Reviewed-on: https://go-review.googlesource.com/c/go/+/400254
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Wayne Zuo <wdvxdr@golangcn.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'src/cmd/compile/internal/deadcode')
0 files changed, 0 insertions, 0 deletions
