diff options
| author | Jorropo <jorropo.pgm@gmail.com> | 2023-01-31 19:10:33 +0100 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2023-02-08 22:31:12 +0000 |
| commit | 0d8d181bd575dca359266a1008b436b50db8ba18 (patch) | |
| tree | 204602f63057688631357d7ddc492597e0870384 /src/sync/atomic | |
| parent | 9d81ccbf51b08bb29efad5fa9acc8fa69bbd8f6b (diff) | |
| download | go-0d8d181bd575dca359266a1008b436b50db8ba18.tar.xz | |
cmd/compile: use MakeResult in empty MakeSlice elimination
This gets eliminated by thoses rules above:
// for rewriting results of some late-expanded rewrites (below)
(SelectN [0] (MakeResult x ___)) => x
(SelectN [1] (MakeResult x y ___)) => y
(SelectN [2] (MakeResult x y z ___)) => z
Fixes #58161
Change-Id: I4fbfd52c72c06b6b3db906bd9910b6dbb7fe8975
Reviewed-on: https://go-review.googlesource.com/c/go/+/463846
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Diffstat (limited to 'src/sync/atomic')
0 files changed, 0 insertions, 0 deletions
